diff options
author | Roger Sayle <roger@eyesopen.com> | 2004-08-01 18:04:42 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-08-01 18:04:42 +0000 |
commit | dc6d70957c4e77512a6f02ec232f14621d7b2f98 (patch) | |
tree | f84e9456b641e477dd7ac93534fec7e9caea9a9b /gcc/java/decl.c | |
parent | 023d776a1124e7cdcc9bb51716f1aed6b0ff3735 (diff) | |
download | gcc-dc6d70957c4e77512a6f02ec232f14621d7b2f98.zip gcc-dc6d70957c4e77512a6f02ec232f14621d7b2f98.tar.gz gcc-dc6d70957c4e77512a6f02ec232f14621d7b2f98.tar.bz2 |
decl.c (update_aliases, [...]): Replace calls to build with calls to buildN.
* decl.c (update_aliases, initialize_local_variable): Replace calls
to build with calls to buildN.
* java-gimplify.c (java_gimplify_modify_expr): Likewise.
* java-tree.h (BUILD_MONITOR_ENTER, BUILD_MONITOR_EXIT): Likewise.
* parse.h (BUILD_THROW): Likewise.
* parse.y (switch_expression, synchronized_statement,
catch_clause_parameter, array_creation_expression,
conditional_expression, make_qualified_name,
resolve_qualified_expression_name, patch_method_invocation,
patch_invoke, build_method_invocation, build_new_invocation,
build_assignment, patch_assignment, build_binop, patch_binop,
build_string_concatenation, build_incdec, patch_unaryop,
patch_cast, build_array_ref, build_newarray_node, patch_newarray,
patch_return, build_if_else_statement, build_labeled_block,
build_new_loop, build_loop_body, build_bc_statement,
build_assertion, encapsulate_with_try_catch, build_try_statement,
build_try_finally_statement, patch_synchronized_statement,
emit_test_initialization): Likewise, replace build with buildN.
From-SVN: r85410
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r-- | gcc/java/decl.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c index 9da83fc..54a2e20 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -153,8 +153,7 @@ update_aliases (tree decl, int index, int pc) tree src = build1 (NOP_EXPR, tmp_type, decl); if (LOCAL_VAR_OUT_OF_SCOPE_P (tmp)) abort (); - java_add_stmt - (build (MODIFY_EXPR, tmp_type, tmp, src)); + java_add_stmt (build2 (MODIFY_EXPR, tmp_type, tmp, src)); } } } @@ -196,8 +195,7 @@ initialize_local_variable (tree decl, int index) /* At the point of its creation this decl inherits whatever is in the slot. */ tree src = build1 (NOP_EXPR, decl_type, tmp); - java_add_stmt - (build (MODIFY_EXPR, decl_type, decl, src)); + java_add_stmt (build2 (MODIFY_EXPR, decl_type, decl, src)); } } else @@ -216,10 +214,10 @@ initialize_local_variable (tree decl, int index) && INTEGRAL_TYPE_P (decl_type) && TYPE_PRECISION (decl_type) <= 32 && TYPE_PRECISION (tmp_type) <= 32 - && TYPE_PRECISION (tmp_type) >= TYPE_PRECISION (decl_type)))) + && TYPE_PRECISION (tmp_type) + >= TYPE_PRECISION (decl_type)))) { - java_add_stmt - (build (MODIFY_EXPR, decl_type, decl, tmp)); + java_add_stmt (build2 (MODIFY_EXPR, decl_type, decl, tmp)); return; } } |