diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-22 19:28:00 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-22 19:28:00 +0000 |
commit | bc205914531d551c6d7526da0ae70533b99c7a3c (patch) | |
tree | 0004496cf3900a93b9e0ad258622e9c33e36e97d /gcc/c-lex.c | |
parent | 008a77ec2740a275f6e06e8752b5ee785a675e28 (diff) | |
download | gcc-bc205914531d551c6d7526da0ae70533b99c7a3c.tar.gz |
* c-lex.c (c_lex): Handle CPP_OTHER differently.
* cppexp.c (_cpp_parse_expr): Similarly.
* cpplex.c (SPELL_CHAR): Remove.
(_cpp_lex_direct): Stray chars are saved as byte strings.
(cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
handle SPELL_CHAR.
(cpp_avoid_paste): Update handling of CPP_OTHER.
* cpplib.h: Spell CPP_OTHER like a number.
(struct cpp_token): Remove member c.
* cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65951 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index ec16c15397f..e6017d3141a 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -344,12 +344,9 @@ c_lex (value) *value = NULL_TREE; switch (tok->type) { - /* Issue this error here, where we can get at tok->val.c. */ case CPP_OTHER: - if (ISGRAPH (tok->val.c)) - error ("stray '%c' in program", tok->val.c); - else - error ("stray '\\%o' in program", tok->val.c); + error ("stray token \"%s\" in program", + cpp_token_as_text (parse_in, tok)); goto retry; case CPP_NAME: |