diff options
author | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-10 20:28:00 +0000 |
---|---|---|
committer | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-10 20:28:00 +0000 |
commit | 956512913860ad539c4c2c5382f2418776c27865 (patch) | |
tree | 1772e0af80d015dfe5d83b4dfff3f622c83554e9 /gcc/java/lex.c | |
parent | 31a162bded92e6dcdeb70b85ee88372a6e14ce98 (diff) | |
download | gcc-956512913860ad539c4c2c5382f2418776c27865.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24255 138bc75d-0d04-0410-961f-82ee72b054a4
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 b8b635ab1fc..d60e97db91e 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); } } |