Commit 1690826f by Alexandre Oliva Committed by Alexandre Oliva

cpphash.c (collect_formal_parameters): Do not complain about parameter names…

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
parent f03eebe3
2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* 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 <jh@suse.cz> Wed Mar 15 13:26:58 MET 2000 Jan Hubicka <jh@suse.cz>
* i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
......
...@@ -599,7 +599,8 @@ collect_formal_parameters (pfile) ...@@ -599,7 +599,8 @@ collect_formal_parameters (pfile)
continue; continue;
} }
if (CPP_PEDANTIC (pfile) && CPP_OPTIONS (pfile)->c99 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, cpp_pedwarn (pfile,
"C99 does not permit use of `__VA_ARGS__' as a macro argument name"); "C99 does not permit use of `__VA_ARGS__' as a macro argument name");
namebuf = (U_CHAR *) xrealloc (namebuf, argslen + len + 1); namebuf = (U_CHAR *) xrealloc (namebuf, argslen + len + 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment