aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>1999-12-06 19:31:25 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>1999-12-06 11:31:25 -0800
commitafc390b1ad7d6f4dc9b6feec713cb541190c5165 (patch)
tree44b6a0178108cbc0e3a663d4073804dd8a72a7a1 /gcc
parent04572513c7bf1b351b95c2f6ecf78fec8cbe306a (diff)
downloadgcc-afc390b1ad7d6f4dc9b6feec713cb541190c5165.zip
gcc-afc390b1ad7d6f4dc9b6feec713cb541190c5165.tar.gz
gcc-afc390b1ad7d6f4dc9b6feec713cb541190c5165.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog10
-rw-r--r--gcc/java/expr.c3
-rw-r--r--gcc/java/jcf-write.c7
-rw-r--r--gcc/java/parse.y3
4 files changed, 16 insertions, 7 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 3adaa43..276dbd4 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,13 @@
+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>
* except.c (emit_handlers): Zero catch_clauses after emitting them.
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index 48d5146..1b1cad2 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -874,8 +874,7 @@ expand_java_arraystore (rhs_type_node)
index = save_expr (index);
array = save_expr (array);
- if (TREE_CODE (rhs_type_node) == POINTER_TYPE
- && !CLASS_FINAL (TYPE_NAME (TREE_TYPE (rhs_type_node))))
+ if (TREE_CODE (rhs_type_node) == POINTER_TYPE)
{
tree check = build (CALL_EXPR, void_type_node,
build_address_of (soft_checkarraystore_node),
diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c
index 397a308..a371041 100644
--- a/gcc/java/jcf-write.c
+++ b/gcc/java/jcf-write.c
@@ -1462,8 +1462,8 @@ generate_bytecode_insns (exp, target, state)
}
break;
case COMPOUND_EXPR:
- 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, 0), IGNORE_TARGET, state);
+ generate_bytecode_insns (TREE_OPERAND (exp, 1), target, state);
break;
case EXPR_WITH_FILE_LOCATION:
{
@@ -2140,7 +2140,8 @@ generate_bytecode_insns (exp, target, state)
{
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);
OP1 (OPCODE_checkcast);
OP2 (index);
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index 07e6cfa..65a3f09 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -9193,8 +9193,7 @@ patch_assignment (node, wfl_op1, wfl_op2)
if (!flag_emit_class_files
&& !flag_emit_xref
&& lvalue_from_array
- && JREFERENCE_TYPE_P (TYPE_ARRAY_ELEMENT (lhs_type))
- && !CLASS_FINAL (TYPE_NAME (GET_SKIP_TYPE (rhs_type))))
+ && JREFERENCE_TYPE_P (TYPE_ARRAY_ELEMENT (lhs_type)))
{
tree check;
tree base = lvalue;