aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppexp.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2001-10-06 23:11:27 +0000
committerZack Weinberg <zack@gcc.gnu.org>2001-10-06 23:11:27 +0000
commit47ad4138968382305b6f563c8745356c653dc9b4 (patch)
tree18e0a81db62c23158e5b9bb4e1bc8f943923ea29 /gcc/cppexp.c
parent7fb56130c433ad5492234da98506fe00dfbd00d4 (diff)
downloadgcc-47ad4138968382305b6f563c8745356c653dc9b4.zip
gcc-47ad4138968382305b6f563c8745356c653dc9b4.tar.gz
gcc-47ad4138968382305b6f563c8745356c653dc9b4.tar.bz2
cpplex.c (enum spell_type): Add SPELL_NUMBER.
* 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. From-SVN: r46052
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r--gcc/cppexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c
index c79f20d..e2ed7de 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. */