OSDN Git Service

* Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Apr 2003 22:44:06 +0000 (22:44 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Apr 2003 22:44:06 +0000 (22:44 +0000)
commit4970d4c276556431657c6c1bb020b0ca892535b0
treee4f819e101d1dc188ae9d2012e0cb8ab2239160d
parentec874bb2071e2c87706121d6e62f757be739d90a
* Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
* c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
(lex_string): Take cpp_string with full spelling.
(cb_ident): Update.
(c_lex): Update diagnostics.
* cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
(create_literal): New.
(lex_string): Unterminated literals have type CPP_OTHER.
(_cpp_lex_direct): Update calls to lex_string.  Use create_literal
for CPP_OTHER.
(cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
(_cpp_equiv_tokens, cpp_interpret_charconst): Update.
* cpplib.c (parse_include, do_line, do_linemarker,
destringize_and_run): Update for token storing full spelling.
* cpplib.h: Update token spelling types.
* cppmacro.c (stringify_arg, check_trad_stringification):
Update for token storing full spelling.
cp:
* Make-lang.in (lex.o): Remove mbchar.h.
* lex.c (MULTIBYTE_CHARS): Lose.
* parser.c (cp_lexer_get_preprocessor_token): CPP_OTHER handled
in c-lex.c.
testsuite:
* gcc.dg/cpp/include2.c: Update.
* gcc.dg/cpp/multiline-2.c: New.
* gcc.dg/cpp/multiline.c: Update.
* gcc.dg/cpp/strify2.c: Update.
* gcc.dg/cpp/trad/literals-2.c: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66019 138bc75d-0d04-0410-961f-82ee72b054a4
17 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/c-lex.c
gcc/cp/ChangeLog
gcc/cp/Make-lang.in
gcc/cp/lex.c
gcc/cp/parser.c
gcc/cpplex.c
gcc/cpplib.c
gcc/cpplib.h
gcc/cppmacro.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/include2.c
gcc/testsuite/gcc.dg/cpp/multiline-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/multiline.c
gcc/testsuite/gcc.dg/cpp/strify2.c
gcc/testsuite/gcc.dg/cpp/trad/literals-2.c