diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-07-19 06:12:50 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-07-19 06:12:50 +0000 |
commit | c60e94a70efc44dd419ec5119dad3aa7813949d3 (patch) | |
tree | e3d86fe81bb6734db7b177884761a5402cc9f044 /gcc/cp | |
parent | dbc957f103982bd3d8cb973beb26439d4e99ad8c (diff) | |
download | gcc-c60e94a70efc44dd419ec5119dad3aa7813949d3.zip gcc-c60e94a70efc44dd419ec5119dad3aa7813949d3.tar.gz gcc-c60e94a70efc44dd419ec5119dad3aa7813949d3.tar.bz2 |
c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
* c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
* c-parse.in (yyerror, _yylex): Similarly.
* cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
Update comments.
* cpplib.h (CPP_INT, CPP_FLOAT): Remove.
* cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
From-SVN: r44144
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/spew.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6825721..8d98554 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk> + + * spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases. + 2001-07-18 Mark Mitchell <mark@codesourcery.com> * class.c (type_requires_array_cookie): New function. diff --git a/gcc/cp/spew.c b/gcc/cp/spew.c index 7b88757..7a92d9d 100644 --- a/gcc/cp/spew.c +++ b/gcc/cp/spew.c @@ -340,8 +340,6 @@ read_token (t) t->yychar = read_process_identifier (&t->yylval); break; - case CPP_INT: - case CPP_FLOAT: case CPP_NUMBER: case CPP_CHAR: case CPP_WCHAR: @@ -1490,9 +1488,7 @@ yyerror (msgid) else if (last_token == CPP_STRING || last_token == CPP_WSTRING) error ("%s before string constant", string); - else if (last_token == CPP_NUMBER - || last_token == CPP_INT - || last_token == CPP_FLOAT) + else if (last_token == CPP_NUMBER) error ("%s before numeric constant", string); else if (last_token == CPP_NAME) { |