aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2011-06-21 19:04:33 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>2011-06-21 19:04:33 +0000
commite0a8ecf2a2df715d56d193bd80f2c60dc1851359 (patch)
tree542172a8d8596f3d22965c815b00a724d0f38352 /gcc/java
parent663827d3e5b2ae5fdbcc8b2b6591910b886af3b2 (diff)
downloadgcc-e0a8ecf2a2df715d56d193bd80f2c60dc1851359.zip
gcc-e0a8ecf2a2df715d56d193bd80f2c60dc1851359.tar.gz
gcc-e0a8ecf2a2df715d56d193bd80f2c60dc1851359.tar.bz2
cosmetic. Add sync_ to all the expand_builtin defines which do not match the actual builtin_sync_ names.
2011-06-21 Andrew MacLeod <amacleod@redhat.com> * builtins.c: Add sync_ or SYNC__ to builtin names. * sync-builtins.def: Add sync_ or SYNC__ to builtin names. * omp-low.c: Add sync_ or SYNC__ to builtin names. * c-family/c-common.c: Add sync_ or SYNC__ to builtin names. * c-family/c-omp.c: Add sync_ or SYNC__ to builtin names. * java/builtins.c: Add sync_ or SYNC__ to builtin names. * java/expr.c: Add sync_ or SYNC__ to builtin names. * cp/semantics.c: Add sync_ or SYNC__ to builtin names. * fortran/trans-openmp.c: Add sync_ or SYNC__ to builtin names. * fortran/trans-stmt.c: Add sync_ or SYNC__ to builtin names. * fortran/trans-decl.c: Add sync_ or SYNC__ to builtin names. From-SVN: r175270
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/builtins.c24
-rw-r--r--gcc/java/expr.c4
3 files changed, 20 insertions, 13 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index b88b71f..98dd104 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-21 Andrew MacLeod <amacleod@redhat.com>
+
+ * builtins.c: Add sync_ or SYNC__ to builtin names.
+ * expr.c: Add sync_ or SYNC__ to builtin names.
+
2011-06-07 Richard Guenther <rguenther@suse.de>
* decl.c (java_init_decl_processing): Call build_common_nodes,
diff --git a/gcc/java/builtins.c b/gcc/java/builtins.c
index 2100f09..817f862 100644
--- a/gcc/java/builtins.c
+++ b/gcc/java/builtins.c
@@ -331,8 +331,9 @@ compareAndSwapInt_builtin (tree method_return_type ATTRIBUTE_UNUSED,
(void) value_type; /* Avoid set but not used warning. */
addr = build_addr_sum (int_type_node, obj_arg, offset_arg);
- stmt = build_call_expr (built_in_decls[BUILT_IN_BOOL_COMPARE_AND_SWAP_4],
- 3, addr, expected_arg, value_arg);
+ stmt = build_call_expr
+ (built_in_decls[BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_4],
+ 3, addr, expected_arg, value_arg);
return build_check_this (stmt, this_arg);
}
@@ -357,8 +358,9 @@ compareAndSwapLong_builtin (tree method_return_type ATTRIBUTE_UNUSED,
(void) value_type; /* Avoid set but not used warning. */
addr = build_addr_sum (long_type_node, obj_arg, offset_arg);
- stmt = build_call_expr (built_in_decls[BUILT_IN_BOOL_COMPARE_AND_SWAP_8],
- 3, addr, expected_arg, value_arg);
+ stmt = build_call_expr
+ (built_in_decls[BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_8],
+ 3, addr, expected_arg, value_arg);
return build_check_this (stmt, this_arg);
}
@@ -378,8 +380,8 @@ compareAndSwapObject_builtin (tree method_return_type ATTRIBUTE_UNUSED,
UNMARSHAL5 (orig_call);
builtin = (POINTER_SIZE == 32
- ? BUILT_IN_BOOL_COMPARE_AND_SWAP_4
- : BUILT_IN_BOOL_COMPARE_AND_SWAP_8);
+ ? BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_4
+ : BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_8);
addr = build_addr_sum (value_type, obj_arg, offset_arg);
stmt = build_call_expr (built_in_decls[builtin],
@@ -402,7 +404,7 @@ putVolatile_builtin (tree method_return_type ATTRIBUTE_UNUSED,
= fold_convert (build_pointer_type (build_type_variant (value_type, 0, 1)),
addr);
- stmt = build_call_expr (built_in_decls[BUILT_IN_SYNCHRONIZE], 0);
+ stmt = build_call_expr (built_in_decls[BUILT_IN_SYNC_SYNCHRONIZE], 0);
modify_stmt = fold_build2 (MODIFY_EXPR, value_type,
build_java_indirect_ref (value_type, addr,
flag_check_references),
@@ -426,7 +428,7 @@ getVolatile_builtin (tree method_return_type ATTRIBUTE_UNUSED,
= fold_convert (build_pointer_type (build_type_variant
(method_return_type, 0, 1)), addr);
- stmt = build_call_expr (built_in_decls[BUILT_IN_SYNCHRONIZE], 0);
+ stmt = build_call_expr (built_in_decls[BUILT_IN_SYNC_SYNCHRONIZE], 0);
tmp = build_decl (BUILTINS_LOCATION, VAR_DECL, NULL, method_return_type);
DECL_IGNORED_P (tmp) = 1;
@@ -573,21 +575,21 @@ initialize_builtins (void)
boolean_ftype_boolean_boolean,
"__builtin_expect",
BUILTIN_CONST | BUILTIN_NOTHROW);
- define_builtin (BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
+ define_builtin (BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_4,
"__sync_bool_compare_and_swap_4",
build_function_type_list (boolean_type_node,
int_type_node,
build_pointer_type (int_type_node),
int_type_node, NULL_TREE),
"__sync_bool_compare_and_swap_4", 0);
- define_builtin (BUILT_IN_BOOL_COMPARE_AND_SWAP_8,
+ define_builtin (BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_8,
"__sync_bool_compare_and_swap_8",
build_function_type_list (boolean_type_node,
long_type_node,
build_pointer_type (long_type_node),
int_type_node, NULL_TREE),
"__sync_bool_compare_and_swap_8", 0);
- define_builtin (BUILT_IN_SYNCHRONIZE, "__sync_synchronize",
+ define_builtin (BUILT_IN_SYNC_SYNCHRONIZE, "__sync_synchronize",
build_function_type_list (void_type_node, NULL_TREE),
"__sync_synchronize", BUILTIN_NOTHROW);
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index 6f43b19..3bf983a 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -2940,7 +2940,7 @@ expand_java_field_op (int is_static, int is_putting, int field_ref_index)
if (TREE_THIS_VOLATILE (field_decl))
java_add_stmt
- (build_call_expr (built_in_decls[BUILT_IN_SYNCHRONIZE], 0));
+ (build_call_expr (built_in_decls[BUILT_IN_SYNC_SYNCHRONIZE], 0));
java_add_stmt (modify_expr);
}
@@ -2959,7 +2959,7 @@ expand_java_field_op (int is_static, int is_putting, int field_ref_index)
if (TREE_THIS_VOLATILE (field_decl))
java_add_stmt
- (build_call_expr (built_in_decls[BUILT_IN_SYNCHRONIZE], 0));
+ (build_call_expr (built_in_decls[BUILT_IN_SYNC_SYNCHRONIZE], 0));
push_value (temp);
}