diff options
author | Alexandre Petit-Bianco <apbianco@sendai.cygnus.com> | 1998-12-10 20:28:00 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 1998-12-10 12:28:00 -0800 |
commit | 4a5f66c3011fa3bd3119c254fc35ed353d7bdcd0 (patch) | |
tree | 1772e0af80d015dfe5d83b4dfff3f622c83554e9 /gcc/java/lex.c | |
parent | 737e7965de64b49022c536aaa33a4e0d8de29582 (diff) | |
download | gcc-4a5f66c3011fa3bd3119c254fc35ed353d7bdcd0.zip gcc-4a5f66c3011fa3bd3119c254fc35ed353d7bdcd0.tar.gz gcc-4a5f66c3011fa3bd3119c254fc35ed353d7bdcd0.tar.bz2 |
decl.c (long_zero_node, [...]): New global variables, initialized.
Thu Dec 10 20:00:54 1998 Alexandre Petit-Bianco <apbianco@sendai.cygnus.com>
* decl.c (long_zero_node, float_zero_node, double_zero_node): New
global variables, initialized.
* java-tree.h (long_zero_node, float_zero_node, double_zero_node):
Declared new global variables.
* lex.c (java_lex): Return long_zero_node, float_zero_node,
double_zero_node, integer_zero_node upon direct matching.
* parse.y (purify_type_name): Added function prototype.
(duplicate_declaration_error_p): Consider new_type as potentially
being a incomplete type. Use purify_type_name on type string.
(method_header): saved_type: unused variable removed. Don't figure
return type if method name is invalid.
(java_complete_tree): Set CAN_COMPLETE_NORMALLY after `node' was
processed by patch_unaryop.
(patch_unaryop): Fixed typo in comment. Re-convert pre/post
increment/decrement node into its original type after binary
numeric promotion on its operands.
Fixes a bug occuring when an error occurs in constructor
declaration. Fixes a bug on ++/-- operators on non integer operands.
From-SVN: r24255
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r-- | gcc/java/lex.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c index b8b635a..d60e97d 100644 --- a/gcc/java/lex.c +++ b/gcc/java/lex.c @@ -623,19 +623,17 @@ java_lex (java_lval) switch (c) { case 'L': case 'l': - SET_LVAL_NODE_TYPE (integer_zero_node, long_type_node); + SET_LVAL_NODE (long_zero_node); return (INT_LIT_TK); case 'f': case 'F': - SET_LVAL_NODE_TYPE (build_real (float_type_node, dconst0), - float_type_node); + SET_LVAL_NODE (float_zero_node); return (FP_LIT_TK); case 'd': case 'D': - SET_LVAL_NODE_TYPE (build_real (double_type_node, dconst0), - double_type_node); + SET_LVAL_NODE (double_zero_node); return (FP_LIT_TK); default: java_unget_unicode (); - SET_LVAL_NODE_TYPE (integer_zero_node, int_type_node); + SET_LVAL_NODE (integer_zero_node); return (INT_LIT_TK); } } |