OSDN Git Service

* c-lex.c (get_nonpadding_token): Remove.
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Oct 2004 09:20:14 +0000 (09:20 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Oct 2004 09:20:14 +0000 (09:20 +0000)
commit61cc302f5a015821553715bec582a849cc0c5fb0
tree8b1dcd7ea7fe58c697f075ec9c7cdad1138aaa85
parentc473c16ad275322789d3e33eeff3f9bafcecdce9
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89577 138bc75d-0d04-0410-961f-82ee72b054a4
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