]> gcc.gnu.org Git - gcc.git/commit
cpplex.c (_cpp_lex_token): Don't warn about directives in macro arguments when lookin...
authorNeil Booth <neil@daikokuya.demon.co.uk>
Sat, 3 Mar 2001 22:14:08 +0000 (22:14 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sat, 3 Mar 2001 22:14:08 +0000 (22:14 +0000)
commite8408f251a70640dcc208877ef3122efd5b7e824
tree7dc28de2225965477d01df8a6de99ec5755e2829
parent20f9202d81c1a89a0cb65a6ef260101a8ee8822b
cpplex.c (_cpp_lex_token): Don't warn about directives in macro arguments when looking for the '('.

* cpplex.c (_cpp_lex_token): Don't warn about directives in
macro arguments when looking for the '('.
* cppmacro.c (funlike_invocation_p): Set parsing_args to
2 when really parsing arguments; 1 when looking for '('.
Always restore the lexer position.
* gcc.dg/cpp/cppmacro7.c: New test.

From-SVN: r40223
gcc/ChangeLog
gcc/cpplex.c
gcc/cppmacro.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/macro7.c [new file with mode: 0644]
This page took 0.065036 seconds and 5 git commands to generate.