From 180de4158c25dd9e3dbf481db18b33a10842a187 Mon Sep 17 00:00:00 2001 From: apbianco Date: Sat, 29 Jan 2000 22:40:07 +0000 Subject: 2000-01-29 Alexandre Petit-Bianco * 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 * 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 --- gcc/java/jcf-write.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/java/jcf-write.c') 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; -- cgit v1.2.3