Commit afc390b1 by Alexandre Petit-Bianco Committed by Alexandre Petit-Bianco

jcf-write.c (generate_byecode_insns): Fixed indentation for COMPOUND_EXPR and FIX_TRUNC_EXPR cases.

Tue Nov 30 12:28:34 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * jcf-write.c (generate_byecode_insns): Fixed indentation for
        COMPOUND_EXPR and FIX_TRUNC_EXPR cases.

        * parse.y (patch_assignment): Removed bogus final class test on
        lhs when checking on whether to emit an ArrayStoreException runtime
        check.
        * expr.c (expand_java_arraystore): Likewise.

From-SVN: r30806
parent 04572513
Tue Nov 30 12:28:34 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* jcf-write.c (generate_byecode_insns): Fixed indentation for
COMPOUND_EXPR and FIX_TRUNC_EXPR cases.
* parse.y (patch_assignment): Removed bogus final class test on
lhs when checking on whether to emit an ArraySoreException runtime
check.
* expr.c (expand_java_arraystore): Likewise.
1999-11-24 Mark Mitchell <mark@codesourcery.com> 1999-11-24 Mark Mitchell <mark@codesourcery.com>
* except.c (emit_handlers): Zero catch_clauses after emitting them. * except.c (emit_handlers): Zero catch_clauses after emitting them.
......
...@@ -874,8 +874,7 @@ expand_java_arraystore (rhs_type_node) ...@@ -874,8 +874,7 @@ expand_java_arraystore (rhs_type_node)
index = save_expr (index); index = save_expr (index);
array = save_expr (array); array = save_expr (array);
if (TREE_CODE (rhs_type_node) == POINTER_TYPE if (TREE_CODE (rhs_type_node) == POINTER_TYPE)
&& !CLASS_FINAL (TYPE_NAME (TREE_TYPE (rhs_type_node))))
{ {
tree check = build (CALL_EXPR, void_type_node, tree check = build (CALL_EXPR, void_type_node,
build_address_of (soft_checkarraystore_node), build_address_of (soft_checkarraystore_node),
......
...@@ -1462,8 +1462,8 @@ generate_bytecode_insns (exp, target, state) ...@@ -1462,8 +1462,8 @@ generate_bytecode_insns (exp, target, state)
} }
break; break;
case COMPOUND_EXPR: case COMPOUND_EXPR:
generate_bytecode_insns (TREE_OPERAND (exp, 0), IGNORE_TARGET, state); generate_bytecode_insns (TREE_OPERAND (exp, 0), IGNORE_TARGET, state);
generate_bytecode_insns (TREE_OPERAND (exp, 1), target, state); generate_bytecode_insns (TREE_OPERAND (exp, 1), target, state);
break; break;
case EXPR_WITH_FILE_LOCATION: case EXPR_WITH_FILE_LOCATION:
{ {
...@@ -2140,7 +2140,8 @@ generate_bytecode_insns (exp, target, state) ...@@ -2140,7 +2140,8 @@ generate_bytecode_insns (exp, target, state)
{ {
if (TREE_CODE (exp) == CONVERT_EXPR) if (TREE_CODE (exp) == CONVERT_EXPR)
{ {
int index = find_class_constant (&state->cpool, TREE_TYPE (dst_type)); int index = find_class_constant (&state->cpool,
TREE_TYPE (dst_type));
RESERVE (3); RESERVE (3);
OP1 (OPCODE_checkcast); OP1 (OPCODE_checkcast);
OP2 (index); OP2 (index);
......
...@@ -9193,8 +9193,7 @@ patch_assignment (node, wfl_op1, wfl_op2) ...@@ -9193,8 +9193,7 @@ patch_assignment (node, wfl_op1, wfl_op2)
if (!flag_emit_class_files if (!flag_emit_class_files
&& !flag_emit_xref && !flag_emit_xref
&& lvalue_from_array && lvalue_from_array
&& JREFERENCE_TYPE_P (TYPE_ARRAY_ELEMENT (lhs_type)) && JREFERENCE_TYPE_P (TYPE_ARRAY_ELEMENT (lhs_type)))
&& !CLASS_FINAL (TYPE_NAME (GET_SKIP_TYPE (rhs_type))))
{ {
tree check; tree check;
tree base = lvalue; tree base = lvalue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment