diff options
author | Alexandre Oliva <oliva@lsd.ic.unicamp.br> | 2000-03-15 18:46:09 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2000-03-15 18:46:09 +0000 |
commit | 1690826f332db8489e14f8c95bf0aef4e09acef8 (patch) | |
tree | b373d3996e1502203a16ca74cd83e30588fc6e8d /gcc | |
parent | f03eebe32515fc0a60deb6e42602300f737a98a8 (diff) | |
download | gcc-1690826f332db8489e14f8c95bf0aef4e09acef8.zip gcc-1690826f332db8489e14f8c95bf0aef4e09acef8.tar.gz gcc-1690826f332db8489e14f8c95bf0aef4e09acef8.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cpphash.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ca7070e..8c0b1af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and diff --git a/gcc/cpphash.c b/gcc/cpphash.c index 8d0b570..7fe58d9 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); |