aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r--gcc/java/expr.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index ec2d9b65d0a..d38311726d3 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -2073,7 +2073,7 @@ static void
rewrite_arglist_getcaller (VEC(tree,gc) **arglist)
{
tree retaddr
- = build_call_expr (built_in_decls[BUILT_IN_RETURN_ADDRESS],
+ = build_call_expr (builtin_decl_explicit (BUILT_IN_RETURN_ADDRESS),
1, integer_zero_node);
DECL_UNINLINABLE (current_function_decl) = 1;
@@ -2933,8 +2933,10 @@ expand_java_field_op (int is_static, int is_putting, int field_ref_index)
field_ref, new_value);
if (TREE_THIS_VOLATILE (field_decl))
- java_add_stmt
- (build_call_expr (built_in_decls[BUILT_IN_SYNC_SYNCHRONIZE], 0));
+ {
+ tree sync = builtin_decl_explicit (BUILT_IN_SYNC_SYNCHRONIZE);
+ java_add_stmt (build_call_expr (sync, 0));
+ }
java_add_stmt (modify_expr);
}
@@ -2952,8 +2954,10 @@ expand_java_field_op (int is_static, int is_putting, int field_ref_index)
java_add_stmt (modify_expr);
if (TREE_THIS_VOLATILE (field_decl))
- java_add_stmt
- (build_call_expr (built_in_decls[BUILT_IN_SYNC_SYNCHRONIZE], 0));
+ {
+ tree sync = builtin_decl_explicit (BUILT_IN_SYNC_SYNCHRONIZE);
+ java_add_stmt (build_call_expr (sync, 0));
+ }
push_value (temp);
}