diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-06 23:11:27 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-06 23:11:27 +0000 |
commit | 8d27e47208b2fba3fbce00fcf599389fd6a9b392 (patch) | |
tree | 18e0a81db62c23158e5b9bb4e1bc8f943923ea29 /gcc/cppexp.c | |
parent | d72ba7a9b8357633f3783f087e848104d01bf702 (diff) | |
download | gcc-8d27e47208b2fba3fbce00fcf599389fd6a9b392.tar.gz |
* cpplex.c (enum spell_type): Add SPELL_NUMBER.
(cpp_token_len, cpp_spell_token, cpp_output_token,
_cpp_equiv_tokens): Handle it.
* cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
* cppexp.c (_cpp_parse_expr): Use the correct operator code in
error messages.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46052 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r-- | gcc/cppexp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c index c79f20d2be9..e2ed7de4b8d 100644 --- a/gcc/cppexp.c +++ b/gcc/cppexp.c @@ -819,13 +819,13 @@ _cpp_parse_expr (pfile) { if (top->flags & HAVE_VALUE) SYNTAX_ERROR2 ("missing binary operator before '%s'", - op_as_text (pfile, top->op)); + op_as_text (pfile, op.op)); } else { if (!(top->flags & HAVE_VALUE)) SYNTAX_ERROR2 ("operator '%s' has no left operand", - op_as_text (pfile, top->op)); + op_as_text (pfile, op.op)); } /* Check for and handle stack overflow. */ |