c-lex.c (get_nonpadding_token): Remove.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 26 Oct 2004 09:20:14 +0000 (09:20 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 26 Oct 2004 09:20:14 +0000 (09:20 +0000)
commit51e63e60b32911b32d553b3c8fb08ef54212951b
tree8b1dcd7ea7fe58c697f075ec9c7cdad1138aaa85
parentbbdb90f76b20f62039880c986107e57f44ad3995
c-lex.c (get_nonpadding_token): Remove.

* c-lex.c (get_nonpadding_token): Remove.
(c_lex_with_flags): Push timevar and eat padding here.  Improve
stray token diagnostic.
(lex_string): Replace logic with switch statement, eat padding
token here.
* cp/parser.c (cp_lexer_get_preprocessor_token): Remove unneeded
padding token checking.
testsuite:
* gcc.dg/cpp/direct2.c: Adjust expected errors, robustify parser
resyncing.
* gcc.dg/cpp/direct2s.c: Likewise.

From-SVN: r89577
gcc/ChangeLog
gcc/c-lex.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/direct2.c
gcc/testsuite/gcc.dg/cpp/direct2s.c