diff options
author | Richard Henderson <rth@redhat.com> | 2001-05-12 21:59:33 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-05-12 21:59:33 -0700 |
commit | f17f18980bc8654557f02a3a6b29ca2fb88c54aa (patch) | |
tree | d37b268dcb8cc4b3d21e21a0832052417e87e5f8 /gcc/java/parse.y | |
parent | d9c219593bd31a92d0c7a7ee111604cc0f8b7234 (diff) | |
download | gcc-f17f18980bc8654557f02a3a6b29ca2fb88c54aa.zip gcc-f17f18980bc8654557f02a3a6b29ca2fb88c54aa.tar.gz gcc-f17f18980bc8654557f02a3a6b29ca2fb88c54aa.tar.bz2 |
java-tree.def (JAVA_EXC_OBJ_EXPR): New.
* java-tree.def (JAVA_EXC_OBJ_EXPR): New.
* expr.c (java_lang_expand_expr): Expand it.
(process_jvm_instruction): Build JAVA_EXC_OBJ_EXPR instead of
calling build_exception_object_ref.
* parse.y (catch_clause_parameter): Likewise.
(build_dot_class_method): Likewise.
(try_reference_assignconv): Likewise.
* check-init.c (check_init): Check JAVA_EXC_OBJ_EXPR not EXC_PTR_EXPR.
* jcf-write.c (generate_bytecode_insns): Likewise.
From-SVN: r42030
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r-- | gcc/java/parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 9985c73..10283b5 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -1888,7 +1888,7 @@ catch_clause_parameter: tree ccpb = enter_block (); tree init = build_assignment (ASSIGN_TK, $2.location, TREE_PURPOSE ($3), - build_exception_object_ref (ptr_type_node)); + build (JAVA_EXC_OBJ_EXPR, ptr_type_node)); declare_local_variables (0, TREE_VALUE ($3), build_tree_list (TREE_PURPOSE ($3), init)); @@ -8415,7 +8415,7 @@ build_dot_class_method (class) /* We initialize the variable with the exception handler. */ catch = build (MODIFY_EXPR, NULL_TREE, catch_clause_param, - build_exception_object_ref (ptr_type_node)); + build (JAVA_EXC_OBJ_EXPR, ptr_type_node)); add_stmt_to_block (catch_block, NULL_TREE, catch); /* We add the statement throwing the new exception */ @@ -12624,7 +12624,7 @@ try_reference_assignconv (lhs_type, rhs) else if (valid_ref_assignconv_cast_p (rhs_type, lhs_type, 0)) new_rhs = rhs; /* This is a magic assignment that we process differently */ - else if (TREE_CODE (rhs) == EXC_PTR_EXPR) + else if (TREE_CODE (rhs) == JAVA_EXC_OBJ_EXPR) new_rhs = rhs; } return new_rhs; |