diff options
| author | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-01-29 22:40:07 +0000 |
|---|---|---|
| committer | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-01-29 22:40:07 +0000 |
| commit | 180de4158c25dd9e3dbf481db18b33a10842a187 (patch) | |
| tree | b89a58f820f86bae4757bbef8cd5acd0505d0889 /gcc/java/jcf-write.c | |
| parent | 60d75c7ce03cb82a24b69662d6df6cd59b3d62ff (diff) | |
| download | ppe42-gcc-180de4158c25dd9e3dbf481db18b33a10842a187.tar.gz ppe42-gcc-180de4158c25dd9e3dbf481db18b33a10842a187.zip | |
2000-01-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (formal_parameter:): Set `$$' to NULL_TREE for better
error handling/recovery.
* java-tree.h (SYNCHRONIZED_EXPR): Fixed typo in comment.
Wed Jan 12 20:20:11 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
* jcf-write.c (generate_bytecode_insns): binop: Change the type of
the shift value to int. Fixed typo in comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31695 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-write.c')
| -rw-r--r-- | gcc/java/jcf-write.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c index d63ad3efbca..81eeed74006 100644 --- a/gcc/java/jcf-write.c +++ b/gcc/java/jcf-write.c @@ -2089,11 +2089,13 @@ generate_bytecode_insns (exp, target, state) else { generate_bytecode_insns (arg0, target, state); + if (jopcode >= OPCODE_lshl && jopcode <= OPCODE_lushr) + arg1 = convert (int_type_node, arg1); generate_bytecode_insns (arg1, target, state); } /* For most binary operations, both operands and the result have the same type. Shift operations are different. Using arg1's type - gets us the correct SP adjustment in all casesd. */ + gets us the correct SP adjustment in all cases. */ if (target == STACK_TARGET) emit_binop (jopcode, TREE_TYPE (arg1), state); break; |

