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
This commit is contained in:
parent
663827d3e5
commit
e0a8ecf2a2
@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
2011-06-21 Georg-Johann Lay <avr@gjlay.de>
|
||||
|
||||
PR target/33049
|
||||
|
234
gcc/builtins.c
234
gcc/builtins.c
@ -5083,30 +5083,30 @@ expand_builtin_sync_operation (enum machine_mode mode, tree exp,
|
||||
|
||||
switch (fcode)
|
||||
{
|
||||
case BUILT_IN_FETCH_AND_NAND_1:
|
||||
case BUILT_IN_FETCH_AND_NAND_2:
|
||||
case BUILT_IN_FETCH_AND_NAND_4:
|
||||
case BUILT_IN_FETCH_AND_NAND_8:
|
||||
case BUILT_IN_FETCH_AND_NAND_16:
|
||||
case BUILT_IN_SYNC_FETCH_AND_NAND_1:
|
||||
case BUILT_IN_SYNC_FETCH_AND_NAND_2:
|
||||
case BUILT_IN_SYNC_FETCH_AND_NAND_4:
|
||||
case BUILT_IN_SYNC_FETCH_AND_NAND_8:
|
||||
case BUILT_IN_SYNC_FETCH_AND_NAND_16:
|
||||
|
||||
if (warned_f_a_n)
|
||||
break;
|
||||
|
||||
fndecl = implicit_built_in_decls[BUILT_IN_FETCH_AND_NAND_N];
|
||||
fndecl = implicit_built_in_decls[BUILT_IN_SYNC_FETCH_AND_NAND_N];
|
||||
inform (loc, "%qD changed semantics in GCC 4.4", fndecl);
|
||||
warned_f_a_n = true;
|
||||
break;
|
||||
|
||||
case BUILT_IN_NAND_AND_FETCH_1:
|
||||
case BUILT_IN_NAND_AND_FETCH_2:
|
||||
case BUILT_IN_NAND_AND_FETCH_4:
|
||||
case BUILT_IN_NAND_AND_FETCH_8:
|
||||
case BUILT_IN_NAND_AND_FETCH_16:
|
||||
case BUILT_IN_SYNC_NAND_AND_FETCH_1:
|
||||
case BUILT_IN_SYNC_NAND_AND_FETCH_2:
|
||||
case BUILT_IN_SYNC_NAND_AND_FETCH_4:
|
||||
case BUILT_IN_SYNC_NAND_AND_FETCH_8:
|
||||
case BUILT_IN_SYNC_NAND_AND_FETCH_16:
|
||||
|
||||
if (warned_n_a_f)
|
||||
break;
|
||||
|
||||
fndecl = implicit_built_in_decls[BUILT_IN_NAND_AND_FETCH_N];
|
||||
fndecl = implicit_built_in_decls[BUILT_IN_SYNC_NAND_AND_FETCH_N];
|
||||
inform (loc, "%qD changed semantics in GCC 4.4", fndecl);
|
||||
warned_n_a_f = true;
|
||||
break;
|
||||
@ -5180,7 +5180,7 @@ expand_builtin_compare_and_swap (enum machine_mode mode, tree exp,
|
||||
the results. */
|
||||
|
||||
static rtx
|
||||
expand_builtin_lock_test_and_set (enum machine_mode mode, tree exp,
|
||||
expand_builtin_sync_lock_test_and_set (enum machine_mode mode, tree exp,
|
||||
rtx target)
|
||||
{
|
||||
rtx val, mem;
|
||||
@ -5202,7 +5202,7 @@ expand_builtin_lock_test_and_set (enum machine_mode mode, tree exp,
|
||||
/* Expand the __sync_synchronize intrinsic. */
|
||||
|
||||
static void
|
||||
expand_builtin_synchronize (void)
|
||||
expand_builtin_sync_synchronize (void)
|
||||
{
|
||||
gimple x;
|
||||
VEC (tree, gc) *v_clobbers;
|
||||
@ -5234,7 +5234,7 @@ expand_builtin_synchronize (void)
|
||||
/* Expand the __sync_lock_release intrinsic. EXP is the CALL_EXPR. */
|
||||
|
||||
static void
|
||||
expand_builtin_lock_release (enum machine_mode mode, tree exp)
|
||||
expand_builtin_sync_lock_release (enum machine_mode mode, tree exp)
|
||||
{
|
||||
struct expand_operand ops[2];
|
||||
enum insn_code icode;
|
||||
@ -5255,7 +5255,7 @@ expand_builtin_lock_release (enum machine_mode mode, tree exp)
|
||||
|
||||
/* Otherwise we can implement this operation by emitting a barrier
|
||||
followed by a store of zero. */
|
||||
expand_builtin_synchronize ();
|
||||
expand_builtin_sync_synchronize ();
|
||||
emit_move_insn (mem, const0_rtx);
|
||||
}
|
||||
|
||||
@ -5844,199 +5844,201 @@ expand_builtin (tree exp, rtx target, rtx subtarget, enum machine_mode mode,
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_FETCH_AND_ADD_1:
|
||||
case BUILT_IN_FETCH_AND_ADD_2:
|
||||
case BUILT_IN_FETCH_AND_ADD_4:
|
||||
case BUILT_IN_FETCH_AND_ADD_8:
|
||||
case BUILT_IN_FETCH_AND_ADD_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_FETCH_AND_ADD_1);
|
||||
case BUILT_IN_SYNC_FETCH_AND_ADD_1:
|
||||
case BUILT_IN_SYNC_FETCH_AND_ADD_2:
|
||||
case BUILT_IN_SYNC_FETCH_AND_ADD_4:
|
||||
case BUILT_IN_SYNC_FETCH_AND_ADD_8:
|
||||
case BUILT_IN_SYNC_FETCH_AND_ADD_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_SYNC_FETCH_AND_ADD_1);
|
||||
target = expand_builtin_sync_operation (mode, exp, PLUS,
|
||||
false, target, ignore);
|
||||
if (target)
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_FETCH_AND_SUB_1:
|
||||
case BUILT_IN_FETCH_AND_SUB_2:
|
||||
case BUILT_IN_FETCH_AND_SUB_4:
|
||||
case BUILT_IN_FETCH_AND_SUB_8:
|
||||
case BUILT_IN_FETCH_AND_SUB_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_FETCH_AND_SUB_1);
|
||||
case BUILT_IN_SYNC_FETCH_AND_SUB_1:
|
||||
case BUILT_IN_SYNC_FETCH_AND_SUB_2:
|
||||
case BUILT_IN_SYNC_FETCH_AND_SUB_4:
|
||||
case BUILT_IN_SYNC_FETCH_AND_SUB_8:
|
||||
case BUILT_IN_SYNC_FETCH_AND_SUB_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_SYNC_FETCH_AND_SUB_1);
|
||||
target = expand_builtin_sync_operation (mode, exp, MINUS,
|
||||
false, target, ignore);
|
||||
if (target)
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_FETCH_AND_OR_1:
|
||||
case BUILT_IN_FETCH_AND_OR_2:
|
||||
case BUILT_IN_FETCH_AND_OR_4:
|
||||
case BUILT_IN_FETCH_AND_OR_8:
|
||||
case BUILT_IN_FETCH_AND_OR_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_FETCH_AND_OR_1);
|
||||
case BUILT_IN_SYNC_FETCH_AND_OR_1:
|
||||
case BUILT_IN_SYNC_FETCH_AND_OR_2:
|
||||
case BUILT_IN_SYNC_FETCH_AND_OR_4:
|
||||
case BUILT_IN_SYNC_FETCH_AND_OR_8:
|
||||
case BUILT_IN_SYNC_FETCH_AND_OR_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_SYNC_FETCH_AND_OR_1);
|
||||
target = expand_builtin_sync_operation (mode, exp, IOR,
|
||||
false, target, ignore);
|
||||
if (target)
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_FETCH_AND_AND_1:
|
||||
case BUILT_IN_FETCH_AND_AND_2:
|
||||
case BUILT_IN_FETCH_AND_AND_4:
|
||||
case BUILT_IN_FETCH_AND_AND_8:
|
||||
case BUILT_IN_FETCH_AND_AND_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_FETCH_AND_AND_1);
|
||||
case BUILT_IN_SYNC_FETCH_AND_AND_1:
|
||||
case BUILT_IN_SYNC_FETCH_AND_AND_2:
|
||||
case BUILT_IN_SYNC_FETCH_AND_AND_4:
|
||||
case BUILT_IN_SYNC_FETCH_AND_AND_8:
|
||||
case BUILT_IN_SYNC_FETCH_AND_AND_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_SYNC_FETCH_AND_AND_1);
|
||||
target = expand_builtin_sync_operation (mode, exp, AND,
|
||||
false, target, ignore);
|
||||
if (target)
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_FETCH_AND_XOR_1:
|
||||
case BUILT_IN_FETCH_AND_XOR_2:
|
||||
case BUILT_IN_FETCH_AND_XOR_4:
|
||||
case BUILT_IN_FETCH_AND_XOR_8:
|
||||
case BUILT_IN_FETCH_AND_XOR_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_FETCH_AND_XOR_1);
|
||||
case BUILT_IN_SYNC_FETCH_AND_XOR_1:
|
||||
case BUILT_IN_SYNC_FETCH_AND_XOR_2:
|
||||
case BUILT_IN_SYNC_FETCH_AND_XOR_4:
|
||||
case BUILT_IN_SYNC_FETCH_AND_XOR_8:
|
||||
case BUILT_IN_SYNC_FETCH_AND_XOR_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_SYNC_FETCH_AND_XOR_1);
|
||||
target = expand_builtin_sync_operation (mode, exp, XOR,
|
||||
false, target, ignore);
|
||||
if (target)
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_FETCH_AND_NAND_1:
|
||||
case BUILT_IN_FETCH_AND_NAND_2:
|
||||
case BUILT_IN_FETCH_AND_NAND_4:
|
||||
case BUILT_IN_FETCH_AND_NAND_8:
|
||||
case BUILT_IN_FETCH_AND_NAND_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_FETCH_AND_NAND_1);
|
||||
case BUILT_IN_SYNC_FETCH_AND_NAND_1:
|
||||
case BUILT_IN_SYNC_FETCH_AND_NAND_2:
|
||||
case BUILT_IN_SYNC_FETCH_AND_NAND_4:
|
||||
case BUILT_IN_SYNC_FETCH_AND_NAND_8:
|
||||
case BUILT_IN_SYNC_FETCH_AND_NAND_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_SYNC_FETCH_AND_NAND_1);
|
||||
target = expand_builtin_sync_operation (mode, exp, NOT,
|
||||
false, target, ignore);
|
||||
if (target)
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_ADD_AND_FETCH_1:
|
||||
case BUILT_IN_ADD_AND_FETCH_2:
|
||||
case BUILT_IN_ADD_AND_FETCH_4:
|
||||
case BUILT_IN_ADD_AND_FETCH_8:
|
||||
case BUILT_IN_ADD_AND_FETCH_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_ADD_AND_FETCH_1);
|
||||
case BUILT_IN_SYNC_ADD_AND_FETCH_1:
|
||||
case BUILT_IN_SYNC_ADD_AND_FETCH_2:
|
||||
case BUILT_IN_SYNC_ADD_AND_FETCH_4:
|
||||
case BUILT_IN_SYNC_ADD_AND_FETCH_8:
|
||||
case BUILT_IN_SYNC_ADD_AND_FETCH_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_SYNC_ADD_AND_FETCH_1);
|
||||
target = expand_builtin_sync_operation (mode, exp, PLUS,
|
||||
true, target, ignore);
|
||||
if (target)
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_SUB_AND_FETCH_1:
|
||||
case BUILT_IN_SUB_AND_FETCH_2:
|
||||
case BUILT_IN_SUB_AND_FETCH_4:
|
||||
case BUILT_IN_SUB_AND_FETCH_8:
|
||||
case BUILT_IN_SUB_AND_FETCH_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_SUB_AND_FETCH_1);
|
||||
case BUILT_IN_SYNC_SUB_AND_FETCH_1:
|
||||
case BUILT_IN_SYNC_SUB_AND_FETCH_2:
|
||||
case BUILT_IN_SYNC_SUB_AND_FETCH_4:
|
||||
case BUILT_IN_SYNC_SUB_AND_FETCH_8:
|
||||
case BUILT_IN_SYNC_SUB_AND_FETCH_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_SYNC_SUB_AND_FETCH_1);
|
||||
target = expand_builtin_sync_operation (mode, exp, MINUS,
|
||||
true, target, ignore);
|
||||
if (target)
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_OR_AND_FETCH_1:
|
||||
case BUILT_IN_OR_AND_FETCH_2:
|
||||
case BUILT_IN_OR_AND_FETCH_4:
|
||||
case BUILT_IN_OR_AND_FETCH_8:
|
||||
case BUILT_IN_OR_AND_FETCH_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_OR_AND_FETCH_1);
|
||||
case BUILT_IN_SYNC_OR_AND_FETCH_1:
|
||||
case BUILT_IN_SYNC_OR_AND_FETCH_2:
|
||||
case BUILT_IN_SYNC_OR_AND_FETCH_4:
|
||||
case BUILT_IN_SYNC_OR_AND_FETCH_8:
|
||||
case BUILT_IN_SYNC_OR_AND_FETCH_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_SYNC_OR_AND_FETCH_1);
|
||||
target = expand_builtin_sync_operation (mode, exp, IOR,
|
||||
true, target, ignore);
|
||||
if (target)
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_AND_AND_FETCH_1:
|
||||
case BUILT_IN_AND_AND_FETCH_2:
|
||||
case BUILT_IN_AND_AND_FETCH_4:
|
||||
case BUILT_IN_AND_AND_FETCH_8:
|
||||
case BUILT_IN_AND_AND_FETCH_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_AND_AND_FETCH_1);
|
||||
case BUILT_IN_SYNC_AND_AND_FETCH_1:
|
||||
case BUILT_IN_SYNC_AND_AND_FETCH_2:
|
||||
case BUILT_IN_SYNC_AND_AND_FETCH_4:
|
||||
case BUILT_IN_SYNC_AND_AND_FETCH_8:
|
||||
case BUILT_IN_SYNC_AND_AND_FETCH_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_SYNC_AND_AND_FETCH_1);
|
||||
target = expand_builtin_sync_operation (mode, exp, AND,
|
||||
true, target, ignore);
|
||||
if (target)
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_XOR_AND_FETCH_1:
|
||||
case BUILT_IN_XOR_AND_FETCH_2:
|
||||
case BUILT_IN_XOR_AND_FETCH_4:
|
||||
case BUILT_IN_XOR_AND_FETCH_8:
|
||||
case BUILT_IN_XOR_AND_FETCH_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_XOR_AND_FETCH_1);
|
||||
case BUILT_IN_SYNC_XOR_AND_FETCH_1:
|
||||
case BUILT_IN_SYNC_XOR_AND_FETCH_2:
|
||||
case BUILT_IN_SYNC_XOR_AND_FETCH_4:
|
||||
case BUILT_IN_SYNC_XOR_AND_FETCH_8:
|
||||
case BUILT_IN_SYNC_XOR_AND_FETCH_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_SYNC_XOR_AND_FETCH_1);
|
||||
target = expand_builtin_sync_operation (mode, exp, XOR,
|
||||
true, target, ignore);
|
||||
if (target)
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_NAND_AND_FETCH_1:
|
||||
case BUILT_IN_NAND_AND_FETCH_2:
|
||||
case BUILT_IN_NAND_AND_FETCH_4:
|
||||
case BUILT_IN_NAND_AND_FETCH_8:
|
||||
case BUILT_IN_NAND_AND_FETCH_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_NAND_AND_FETCH_1);
|
||||
case BUILT_IN_SYNC_NAND_AND_FETCH_1:
|
||||
case BUILT_IN_SYNC_NAND_AND_FETCH_2:
|
||||
case BUILT_IN_SYNC_NAND_AND_FETCH_4:
|
||||
case BUILT_IN_SYNC_NAND_AND_FETCH_8:
|
||||
case BUILT_IN_SYNC_NAND_AND_FETCH_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_SYNC_NAND_AND_FETCH_1);
|
||||
target = expand_builtin_sync_operation (mode, exp, NOT,
|
||||
true, target, ignore);
|
||||
if (target)
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_BOOL_COMPARE_AND_SWAP_1:
|
||||
case BUILT_IN_BOOL_COMPARE_AND_SWAP_2:
|
||||
case BUILT_IN_BOOL_COMPARE_AND_SWAP_4:
|
||||
case BUILT_IN_BOOL_COMPARE_AND_SWAP_8:
|
||||
case BUILT_IN_BOOL_COMPARE_AND_SWAP_16:
|
||||
case BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_1:
|
||||
case BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_2:
|
||||
case BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_4:
|
||||
case BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_8:
|
||||
case BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_16:
|
||||
if (mode == VOIDmode)
|
||||
mode = TYPE_MODE (boolean_type_node);
|
||||
if (!target || !register_operand (target, mode))
|
||||
target = gen_reg_rtx (mode);
|
||||
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_BOOL_COMPARE_AND_SWAP_1);
|
||||
mode = get_builtin_sync_mode
|
||||
(fcode - BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_1);
|
||||
target = expand_builtin_compare_and_swap (mode, exp, true, target);
|
||||
if (target)
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_VAL_COMPARE_AND_SWAP_1:
|
||||
case BUILT_IN_VAL_COMPARE_AND_SWAP_2:
|
||||
case BUILT_IN_VAL_COMPARE_AND_SWAP_4:
|
||||
case BUILT_IN_VAL_COMPARE_AND_SWAP_8:
|
||||
case BUILT_IN_VAL_COMPARE_AND_SWAP_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_VAL_COMPARE_AND_SWAP_1);
|
||||
case BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_1:
|
||||
case BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_2:
|
||||
case BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_4:
|
||||
case BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_8:
|
||||
case BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_16:
|
||||
mode = get_builtin_sync_mode
|
||||
(fcode - BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_1);
|
||||
target = expand_builtin_compare_and_swap (mode, exp, false, target);
|
||||
if (target)
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_LOCK_TEST_AND_SET_1:
|
||||
case BUILT_IN_LOCK_TEST_AND_SET_2:
|
||||
case BUILT_IN_LOCK_TEST_AND_SET_4:
|
||||
case BUILT_IN_LOCK_TEST_AND_SET_8:
|
||||
case BUILT_IN_LOCK_TEST_AND_SET_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_LOCK_TEST_AND_SET_1);
|
||||
target = expand_builtin_lock_test_and_set (mode, exp, target);
|
||||
case BUILT_IN_SYNC_LOCK_TEST_AND_SET_1:
|
||||
case BUILT_IN_SYNC_LOCK_TEST_AND_SET_2:
|
||||
case BUILT_IN_SYNC_LOCK_TEST_AND_SET_4:
|
||||
case BUILT_IN_SYNC_LOCK_TEST_AND_SET_8:
|
||||
case BUILT_IN_SYNC_LOCK_TEST_AND_SET_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_SYNC_LOCK_TEST_AND_SET_1);
|
||||
target = expand_builtin_sync_lock_test_and_set (mode, exp, target);
|
||||
if (target)
|
||||
return target;
|
||||
break;
|
||||
|
||||
case BUILT_IN_LOCK_RELEASE_1:
|
||||
case BUILT_IN_LOCK_RELEASE_2:
|
||||
case BUILT_IN_LOCK_RELEASE_4:
|
||||
case BUILT_IN_LOCK_RELEASE_8:
|
||||
case BUILT_IN_LOCK_RELEASE_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_LOCK_RELEASE_1);
|
||||
expand_builtin_lock_release (mode, exp);
|
||||
case BUILT_IN_SYNC_LOCK_RELEASE_1:
|
||||
case BUILT_IN_SYNC_LOCK_RELEASE_2:
|
||||
case BUILT_IN_SYNC_LOCK_RELEASE_4:
|
||||
case BUILT_IN_SYNC_LOCK_RELEASE_8:
|
||||
case BUILT_IN_SYNC_LOCK_RELEASE_16:
|
||||
mode = get_builtin_sync_mode (fcode - BUILT_IN_SYNC_LOCK_RELEASE_1);
|
||||
expand_builtin_sync_lock_release (mode, exp);
|
||||
return const0_rtx;
|
||||
|
||||
case BUILT_IN_SYNCHRONIZE:
|
||||
expand_builtin_synchronize ();
|
||||
case BUILT_IN_SYNC_SYNCHRONIZE:
|
||||
expand_builtin_sync_synchronize ();
|
||||
return const0_rtx;
|
||||
|
||||
case BUILT_IN_OBJECT_SIZE:
|
||||
|
@ -1,3 +1,7 @@
|
||||
2011-06-21 Andrew MacLeod <amacleod@redhat.com>
|
||||
|
||||
* c-common.c: Add sync_ or SYNC__ to builtin names.
|
||||
* c-omp.c: Add sync_ or SYNC__ to builtin names.
|
||||
|
||||
2011-06-20 Pierre Vittet <piervit@pvittet.com>
|
||||
|
||||
|
@ -9044,22 +9044,22 @@ resolve_overloaded_builtin (location_t loc, tree function, VEC(tree,gc) *params)
|
||||
/* Handle BUILT_IN_NORMAL here. */
|
||||
switch (orig_code)
|
||||
{
|
||||
case BUILT_IN_FETCH_AND_ADD_N:
|
||||
case BUILT_IN_FETCH_AND_SUB_N:
|
||||
case BUILT_IN_FETCH_AND_OR_N:
|
||||
case BUILT_IN_FETCH_AND_AND_N:
|
||||
case BUILT_IN_FETCH_AND_XOR_N:
|
||||
case BUILT_IN_FETCH_AND_NAND_N:
|
||||
case BUILT_IN_ADD_AND_FETCH_N:
|
||||
case BUILT_IN_SUB_AND_FETCH_N:
|
||||
case BUILT_IN_OR_AND_FETCH_N:
|
||||
case BUILT_IN_AND_AND_FETCH_N:
|
||||
case BUILT_IN_XOR_AND_FETCH_N:
|
||||
case BUILT_IN_NAND_AND_FETCH_N:
|
||||
case BUILT_IN_BOOL_COMPARE_AND_SWAP_N:
|
||||
case BUILT_IN_VAL_COMPARE_AND_SWAP_N:
|
||||
case BUILT_IN_LOCK_TEST_AND_SET_N:
|
||||
case BUILT_IN_LOCK_RELEASE_N:
|
||||
case BUILT_IN_SYNC_FETCH_AND_ADD_N:
|
||||
case BUILT_IN_SYNC_FETCH_AND_SUB_N:
|
||||
case BUILT_IN_SYNC_FETCH_AND_OR_N:
|
||||
case BUILT_IN_SYNC_FETCH_AND_AND_N:
|
||||
case BUILT_IN_SYNC_FETCH_AND_XOR_N:
|
||||
case BUILT_IN_SYNC_FETCH_AND_NAND_N:
|
||||
case BUILT_IN_SYNC_ADD_AND_FETCH_N:
|
||||
case BUILT_IN_SYNC_SUB_AND_FETCH_N:
|
||||
case BUILT_IN_SYNC_OR_AND_FETCH_N:
|
||||
case BUILT_IN_SYNC_AND_AND_FETCH_N:
|
||||
case BUILT_IN_SYNC_XOR_AND_FETCH_N:
|
||||
case BUILT_IN_SYNC_NAND_AND_FETCH_N:
|
||||
case BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_N:
|
||||
case BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_N:
|
||||
case BUILT_IN_SYNC_LOCK_TEST_AND_SET_N:
|
||||
case BUILT_IN_SYNC_LOCK_RELEASE_N:
|
||||
{
|
||||
int n = sync_resolve_size (function, params);
|
||||
tree new_function, first_param, result;
|
||||
@ -9073,8 +9073,8 @@ resolve_overloaded_builtin (location_t loc, tree function, VEC(tree,gc) *params)
|
||||
|
||||
first_param = VEC_index (tree, params, 0);
|
||||
result = build_function_call_vec (loc, new_function, params, NULL);
|
||||
if (orig_code != BUILT_IN_BOOL_COMPARE_AND_SWAP_N
|
||||
&& orig_code != BUILT_IN_LOCK_RELEASE_N)
|
||||
if (orig_code != BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_N
|
||||
&& orig_code != BUILT_IN_SYNC_LOCK_RELEASE_N)
|
||||
result = sync_resolve_return (first_param, result);
|
||||
|
||||
return result;
|
||||
|
@ -169,7 +169,7 @@ c_finish_omp_flush (location_t loc)
|
||||
{
|
||||
tree x;
|
||||
|
||||
x = built_in_decls[BUILT_IN_SYNCHRONIZE];
|
||||
x = built_in_decls[BUILT_IN_SYNC_SYNCHRONIZE];
|
||||
x = build_call_expr_loc (loc, x, 0);
|
||||
add_stmt (x);
|
||||
}
|
||||
|
@ -1,3 +1,7 @@
|
||||
2011-06-21 Andrew MacLeod <amacleod@redhat.com>
|
||||
|
||||
* semantics.c: Add sync_ or SYNC__ to builtin names.
|
||||
|
||||
2011-06-20 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/49216
|
||||
|
@ -4722,7 +4722,7 @@ finish_omp_barrier (void)
|
||||
void
|
||||
finish_omp_flush (void)
|
||||
{
|
||||
tree fn = built_in_decls[BUILT_IN_SYNCHRONIZE];
|
||||
tree fn = built_in_decls[BUILT_IN_SYNC_SYNCHRONIZE];
|
||||
VEC(tree,gc) *vec = make_tree_vector ();
|
||||
tree stmt = finish_call_expr (fn, &vec, false, false, tf_warning_or_error);
|
||||
release_tree_vector (vec);
|
||||
|
@ -1,3 +1,9 @@
|
||||
2011-06-21 Andrew MacLeod <amacleod@redhat.com>
|
||||
|
||||
* trans-openmp.c: Add sync_ or SYNC__ to builtin names.
|
||||
* trans-stmt.c: Add sync_ or SYNC__ to builtin names.
|
||||
* trans-decl.c: Add sync_ or SYNC__ to builtin names.
|
||||
|
||||
2011-06-21 Janus Weil <janus@gcc.gnu.org>
|
||||
|
||||
PR fortran/49112
|
||||
|
@ -4904,7 +4904,7 @@ create_main_function (tree fndecl)
|
||||
{
|
||||
/* Per F2008, 8.5.1 END of the main program implies a
|
||||
SYNC MEMORY. */
|
||||
tmp = built_in_decls [BUILT_IN_SYNCHRONIZE];
|
||||
tmp = built_in_decls [BUILT_IN_SYNC_SYNCHRONIZE];
|
||||
tmp = build_call_expr_loc (input_location, tmp, 0);
|
||||
gfc_add_expr_to_block (&body, tmp);
|
||||
|
||||
|
@ -1430,7 +1430,7 @@ gfc_trans_omp_do (gfc_code *code, stmtblock_t *pblock,
|
||||
static tree
|
||||
gfc_trans_omp_flush (void)
|
||||
{
|
||||
tree decl = built_in_decls [BUILT_IN_SYNCHRONIZE];
|
||||
tree decl = built_in_decls [BUILT_IN_SYNC_SYNCHRONIZE];
|
||||
return build_call_expr_loc (input_location, decl, 0);
|
||||
}
|
||||
|
||||
|
@ -602,7 +602,7 @@ gfc_trans_stop (gfc_code *code, bool error_stop)
|
||||
if (gfc_option.coarray == GFC_FCOARRAY_LIB && !error_stop)
|
||||
{
|
||||
/* Per F2008, 8.5.1 STOP implies a SYNC MEMORY. */
|
||||
tmp = built_in_decls [BUILT_IN_SYNCHRONIZE];
|
||||
tmp = built_in_decls [BUILT_IN_SYNC_SYNCHRONIZE];
|
||||
tmp = build_call_expr_loc (input_location, tmp, 0);
|
||||
gfc_add_expr_to_block (&se.pre, tmp);
|
||||
|
||||
@ -774,7 +774,7 @@ gfc_trans_sync (gfc_code *code, gfc_exec_op type)
|
||||
image control statements SYNC IMAGES and SYNC ALL. */
|
||||
if (gfc_option.coarray == GFC_FCOARRAY_LIB)
|
||||
{
|
||||
tmp = built_in_decls [BUILT_IN_SYNCHRONIZE];
|
||||
tmp = built_in_decls [BUILT_IN_SYNC_SYNCHRONIZE];
|
||||
tmp = build_call_expr_loc (input_location, tmp, 0);
|
||||
gfc_add_expr_to_block (&se.pre, tmp);
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -4973,23 +4973,23 @@ expand_omp_atomic_fetch_op (basic_block load_bb,
|
||||
{
|
||||
case PLUS_EXPR:
|
||||
case POINTER_PLUS_EXPR:
|
||||
base = BUILT_IN_FETCH_AND_ADD_N;
|
||||
base = BUILT_IN_SYNC_FETCH_AND_ADD_N;
|
||||
optab = sync_add_optab;
|
||||
break;
|
||||
case MINUS_EXPR:
|
||||
base = BUILT_IN_FETCH_AND_SUB_N;
|
||||
base = BUILT_IN_SYNC_FETCH_AND_SUB_N;
|
||||
optab = sync_add_optab;
|
||||
break;
|
||||
case BIT_AND_EXPR:
|
||||
base = BUILT_IN_FETCH_AND_AND_N;
|
||||
base = BUILT_IN_SYNC_FETCH_AND_AND_N;
|
||||
optab = sync_and_optab;
|
||||
break;
|
||||
case BIT_IOR_EXPR:
|
||||
base = BUILT_IN_FETCH_AND_OR_N;
|
||||
base = BUILT_IN_SYNC_FETCH_AND_OR_N;
|
||||
optab = sync_ior_optab;
|
||||
break;
|
||||
case BIT_XOR_EXPR:
|
||||
base = BUILT_IN_FETCH_AND_XOR_N;
|
||||
base = BUILT_IN_SYNC_FETCH_AND_XOR_N;
|
||||
optab = sync_xor_optab;
|
||||
break;
|
||||
default:
|
||||
@ -5057,7 +5057,7 @@ expand_omp_atomic_pipeline (basic_block load_bb, basic_block store_bb,
|
||||
gimple phi, stmt;
|
||||
edge e;
|
||||
|
||||
cmpxchg = built_in_decls[BUILT_IN_VAL_COMPARE_AND_SWAP_N + index + 1];
|
||||
cmpxchg = built_in_decls[BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_N + index + 1];
|
||||
if (cmpxchg == NULL_TREE)
|
||||
return false;
|
||||
type = TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (addr)));
|
||||
|
@ -28,225 +28,231 @@ along with GCC; see the file COPYING3. If not see
|
||||
is supposed to be using. It's overloaded, and is resolved to one of the
|
||||
"_1" through "_16" versions, plus some extra casts. */
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_ADD_N, "__sync_fetch_and_add",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_ADD_N, "__sync_fetch_and_add",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_ADD_1, "__sync_fetch_and_add_1",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_ADD_1, "__sync_fetch_and_add_1",
|
||||
BT_FN_I1_VPTR_I1, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_ADD_2, "__sync_fetch_and_add_2",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_ADD_2, "__sync_fetch_and_add_2",
|
||||
BT_FN_I2_VPTR_I2, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_ADD_4, "__sync_fetch_and_add_4",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_ADD_4, "__sync_fetch_and_add_4",
|
||||
BT_FN_I4_VPTR_I4, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_ADD_8, "__sync_fetch_and_add_8",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_ADD_8, "__sync_fetch_and_add_8",
|
||||
BT_FN_I8_VPTR_I8, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_ADD_16, "__sync_fetch_and_add_16",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_ADD_16, "__sync_fetch_and_add_16",
|
||||
BT_FN_I16_VPTR_I16, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_SUB_N, "__sync_fetch_and_sub",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_SUB_N, "__sync_fetch_and_sub",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_SUB_1, "__sync_fetch_and_sub_1",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_SUB_1, "__sync_fetch_and_sub_1",
|
||||
BT_FN_I1_VPTR_I1, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_SUB_2, "__sync_fetch_and_sub_2",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_SUB_2, "__sync_fetch_and_sub_2",
|
||||
BT_FN_I2_VPTR_I2, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_SUB_4, "__sync_fetch_and_sub_4",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_SUB_4, "__sync_fetch_and_sub_4",
|
||||
BT_FN_I4_VPTR_I4, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_SUB_8, "__sync_fetch_and_sub_8",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_SUB_8, "__sync_fetch_and_sub_8",
|
||||
BT_FN_I8_VPTR_I8, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_SUB_16, "__sync_fetch_and_sub_16",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_SUB_16, "__sync_fetch_and_sub_16",
|
||||
BT_FN_I16_VPTR_I16, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_OR_N, "__sync_fetch_and_or",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_OR_N, "__sync_fetch_and_or",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_OR_1, "__sync_fetch_and_or_1",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_OR_1, "__sync_fetch_and_or_1",
|
||||
BT_FN_I1_VPTR_I1, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_OR_2, "__sync_fetch_and_or_2",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_OR_2, "__sync_fetch_and_or_2",
|
||||
BT_FN_I2_VPTR_I2, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_OR_4, "__sync_fetch_and_or_4",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_OR_4, "__sync_fetch_and_or_4",
|
||||
BT_FN_I4_VPTR_I4, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_OR_8, "__sync_fetch_and_or_8",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_OR_8, "__sync_fetch_and_or_8",
|
||||
BT_FN_I8_VPTR_I8, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_OR_16, "__sync_fetch_and_or_16",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_OR_16, "__sync_fetch_and_or_16",
|
||||
BT_FN_I16_VPTR_I16, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_AND_N, "__sync_fetch_and_and",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_AND_N, "__sync_fetch_and_and",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_AND_1, "__sync_fetch_and_and_1",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_AND_1, "__sync_fetch_and_and_1",
|
||||
BT_FN_I1_VPTR_I1, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_AND_2, "__sync_fetch_and_and_2",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_AND_2, "__sync_fetch_and_and_2",
|
||||
BT_FN_I2_VPTR_I2, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_AND_4, "__sync_fetch_and_and_4",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_AND_4, "__sync_fetch_and_and_4",
|
||||
BT_FN_I4_VPTR_I4, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_AND_8, "__sync_fetch_and_and_8",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_AND_8, "__sync_fetch_and_and_8",
|
||||
BT_FN_I8_VPTR_I8, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_AND_16, "__sync_fetch_and_and_16",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_AND_16, "__sync_fetch_and_and_16",
|
||||
BT_FN_I16_VPTR_I16, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_XOR_N, "__sync_fetch_and_xor",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_XOR_N, "__sync_fetch_and_xor",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_XOR_1, "__sync_fetch_and_xor_1",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_XOR_1, "__sync_fetch_and_xor_1",
|
||||
BT_FN_I1_VPTR_I1, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_XOR_2, "__sync_fetch_and_xor_2",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_XOR_2, "__sync_fetch_and_xor_2",
|
||||
BT_FN_I2_VPTR_I2, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_XOR_4, "__sync_fetch_and_xor_4",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_XOR_4, "__sync_fetch_and_xor_4",
|
||||
BT_FN_I4_VPTR_I4, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_XOR_8, "__sync_fetch_and_xor_8",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_XOR_8, "__sync_fetch_and_xor_8",
|
||||
BT_FN_I8_VPTR_I8, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_XOR_16, "__sync_fetch_and_xor_16",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_XOR_16, "__sync_fetch_and_xor_16",
|
||||
BT_FN_I16_VPTR_I16, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_NAND_N, "__sync_fetch_and_nand",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_NAND_N, "__sync_fetch_and_nand",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_NAND_1, "__sync_fetch_and_nand_1",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_NAND_1, "__sync_fetch_and_nand_1",
|
||||
BT_FN_I1_VPTR_I1, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_NAND_2, "__sync_fetch_and_nand_2",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_NAND_2, "__sync_fetch_and_nand_2",
|
||||
BT_FN_I2_VPTR_I2, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_NAND_4, "__sync_fetch_and_nand_4",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_NAND_4, "__sync_fetch_and_nand_4",
|
||||
BT_FN_I4_VPTR_I4, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_NAND_8, "__sync_fetch_and_nand_8",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_NAND_8, "__sync_fetch_and_nand_8",
|
||||
BT_FN_I8_VPTR_I8, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_FETCH_AND_NAND_16, "__sync_fetch_and_nand_16",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_FETCH_AND_NAND_16, "__sync_fetch_and_nand_16",
|
||||
BT_FN_I16_VPTR_I16, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_ADD_AND_FETCH_N, "__sync_add_and_fetch",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_ADD_AND_FETCH_N, "__sync_add_and_fetch",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_ADD_AND_FETCH_1, "__sync_add_and_fetch_1",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_ADD_AND_FETCH_1, "__sync_add_and_fetch_1",
|
||||
BT_FN_I1_VPTR_I1, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_ADD_AND_FETCH_2, "__sync_add_and_fetch_2",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_ADD_AND_FETCH_2, "__sync_add_and_fetch_2",
|
||||
BT_FN_I2_VPTR_I2, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_ADD_AND_FETCH_4, "__sync_add_and_fetch_4",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_ADD_AND_FETCH_4, "__sync_add_and_fetch_4",
|
||||
BT_FN_I4_VPTR_I4, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_ADD_AND_FETCH_8, "__sync_add_and_fetch_8",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_ADD_AND_FETCH_8, "__sync_add_and_fetch_8",
|
||||
BT_FN_I8_VPTR_I8, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_ADD_AND_FETCH_16, "__sync_add_and_fetch_16",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_ADD_AND_FETCH_16, "__sync_add_and_fetch_16",
|
||||
BT_FN_I16_VPTR_I16, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SUB_AND_FETCH_N, "__sync_sub_and_fetch",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_SUB_AND_FETCH_N, "__sync_sub_and_fetch",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SUB_AND_FETCH_1, "__sync_sub_and_fetch_1",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_SUB_AND_FETCH_1, "__sync_sub_and_fetch_1",
|
||||
BT_FN_I1_VPTR_I1, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SUB_AND_FETCH_2, "__sync_sub_and_fetch_2",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_SUB_AND_FETCH_2, "__sync_sub_and_fetch_2",
|
||||
BT_FN_I2_VPTR_I2, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SUB_AND_FETCH_4, "__sync_sub_and_fetch_4",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_SUB_AND_FETCH_4, "__sync_sub_and_fetch_4",
|
||||
BT_FN_I4_VPTR_I4, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SUB_AND_FETCH_8, "__sync_sub_and_fetch_8",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_SUB_AND_FETCH_8, "__sync_sub_and_fetch_8",
|
||||
BT_FN_I8_VPTR_I8, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SUB_AND_FETCH_16, "__sync_sub_and_fetch_16",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_SUB_AND_FETCH_16, "__sync_sub_and_fetch_16",
|
||||
BT_FN_I16_VPTR_I16, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_OR_AND_FETCH_N, "__sync_or_and_fetch",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_OR_AND_FETCH_N, "__sync_or_and_fetch",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_OR_AND_FETCH_1, "__sync_or_and_fetch_1",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_OR_AND_FETCH_1, "__sync_or_and_fetch_1",
|
||||
BT_FN_I1_VPTR_I1, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_OR_AND_FETCH_2, "__sync_or_and_fetch_2",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_OR_AND_FETCH_2, "__sync_or_and_fetch_2",
|
||||
BT_FN_I2_VPTR_I2, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_OR_AND_FETCH_4, "__sync_or_and_fetch_4",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_OR_AND_FETCH_4, "__sync_or_and_fetch_4",
|
||||
BT_FN_I4_VPTR_I4, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_OR_AND_FETCH_8, "__sync_or_and_fetch_8",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_OR_AND_FETCH_8, "__sync_or_and_fetch_8",
|
||||
BT_FN_I8_VPTR_I8, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_OR_AND_FETCH_16, "__sync_or_and_fetch_16",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_OR_AND_FETCH_16, "__sync_or_and_fetch_16",
|
||||
BT_FN_I16_VPTR_I16, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_AND_AND_FETCH_N, "__sync_and_and_fetch",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_AND_AND_FETCH_N, "__sync_and_and_fetch",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_AND_AND_FETCH_1, "__sync_and_and_fetch_1",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_AND_AND_FETCH_1, "__sync_and_and_fetch_1",
|
||||
BT_FN_I1_VPTR_I1, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_AND_AND_FETCH_2, "__sync_and_and_fetch_2",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_AND_AND_FETCH_2, "__sync_and_and_fetch_2",
|
||||
BT_FN_I2_VPTR_I2, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_AND_AND_FETCH_4, "__sync_and_and_fetch_4",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_AND_AND_FETCH_4, "__sync_and_and_fetch_4",
|
||||
BT_FN_I4_VPTR_I4, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_AND_AND_FETCH_8, "__sync_and_and_fetch_8",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_AND_AND_FETCH_8, "__sync_and_and_fetch_8",
|
||||
BT_FN_I8_VPTR_I8, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_AND_AND_FETCH_16, "__sync_and_and_fetch_16",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_AND_AND_FETCH_16, "__sync_and_and_fetch_16",
|
||||
BT_FN_I16_VPTR_I16, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_XOR_AND_FETCH_N, "__sync_xor_and_fetch",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_XOR_AND_FETCH_N, "__sync_xor_and_fetch",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_XOR_AND_FETCH_1, "__sync_xor_and_fetch_1",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_XOR_AND_FETCH_1, "__sync_xor_and_fetch_1",
|
||||
BT_FN_I1_VPTR_I1, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_XOR_AND_FETCH_2, "__sync_xor_and_fetch_2",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_XOR_AND_FETCH_2, "__sync_xor_and_fetch_2",
|
||||
BT_FN_I2_VPTR_I2, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_XOR_AND_FETCH_4, "__sync_xor_and_fetch_4",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_XOR_AND_FETCH_4, "__sync_xor_and_fetch_4",
|
||||
BT_FN_I4_VPTR_I4, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_XOR_AND_FETCH_8, "__sync_xor_and_fetch_8",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_XOR_AND_FETCH_8, "__sync_xor_and_fetch_8",
|
||||
BT_FN_I8_VPTR_I8, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_XOR_AND_FETCH_16, "__sync_xor_and_fetch_16",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_XOR_AND_FETCH_16, "__sync_xor_and_fetch_16",
|
||||
BT_FN_I16_VPTR_I16, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_NAND_AND_FETCH_N, "__sync_nand_and_fetch",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_NAND_AND_FETCH_N, "__sync_nand_and_fetch",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_NAND_AND_FETCH_1, "__sync_nand_and_fetch_1",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_NAND_AND_FETCH_1, "__sync_nand_and_fetch_1",
|
||||
BT_FN_I1_VPTR_I1, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_NAND_AND_FETCH_2, "__sync_nand_and_fetch_2",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_NAND_AND_FETCH_2, "__sync_nand_and_fetch_2",
|
||||
BT_FN_I2_VPTR_I2, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_NAND_AND_FETCH_4, "__sync_nand_and_fetch_4",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_NAND_AND_FETCH_4, "__sync_nand_and_fetch_4",
|
||||
BT_FN_I4_VPTR_I4, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_NAND_AND_FETCH_8, "__sync_nand_and_fetch_8",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_NAND_AND_FETCH_8, "__sync_nand_and_fetch_8",
|
||||
BT_FN_I8_VPTR_I8, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_NAND_AND_FETCH_16, "__sync_nand_and_fetch_16",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_NAND_AND_FETCH_16, "__sync_nand_and_fetch_16",
|
||||
BT_FN_I16_VPTR_I16, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_BOOL_COMPARE_AND_SWAP_N,
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_N,
|
||||
"__sync_bool_compare_and_swap",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_BOOL_COMPARE_AND_SWAP_1,
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_1,
|
||||
"__sync_bool_compare_and_swap_1",
|
||||
BT_FN_BOOL_VPTR_I1_I1, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_BOOL_COMPARE_AND_SWAP_2,
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_2,
|
||||
"__sync_bool_compare_and_swap_2",
|
||||
BT_FN_BOOL_VPTR_I2_I2, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_4,
|
||||
"__sync_bool_compare_and_swap_4",
|
||||
BT_FN_BOOL_VPTR_I4_I4, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_BOOL_COMPARE_AND_SWAP_8,
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_8,
|
||||
"__sync_bool_compare_and_swap_8",
|
||||
BT_FN_BOOL_VPTR_I8_I8, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_BOOL_COMPARE_AND_SWAP_16,
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_16,
|
||||
"__sync_bool_compare_and_swap_16",
|
||||
BT_FN_BOOL_VPTR_I16_I16, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_VAL_COMPARE_AND_SWAP_N,
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_N,
|
||||
"__sync_val_compare_and_swap",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_VAL_COMPARE_AND_SWAP_1,
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_1,
|
||||
"__sync_val_compare_and_swap_1",
|
||||
BT_FN_I1_VPTR_I1_I1, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_VAL_COMPARE_AND_SWAP_2,
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_2,
|
||||
"__sync_val_compare_and_swap_2",
|
||||
BT_FN_I2_VPTR_I2_I2, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_VAL_COMPARE_AND_SWAP_4,
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_4,
|
||||
"__sync_val_compare_and_swap_4",
|
||||
BT_FN_I4_VPTR_I4_I4, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_VAL_COMPARE_AND_SWAP_8,
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_8,
|
||||
"__sync_val_compare_and_swap_8",
|
||||
BT_FN_I8_VPTR_I8_I8, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_VAL_COMPARE_AND_SWAP_16,
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_16,
|
||||
"__sync_val_compare_and_swap_16",
|
||||
BT_FN_I16_VPTR_I16_I16, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_LOCK_TEST_AND_SET_N, "__sync_lock_test_and_set",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_LOCK_TEST_AND_SET_N,
|
||||
"__sync_lock_test_and_set",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_LOCK_TEST_AND_SET_1, "__sync_lock_test_and_set_1",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_LOCK_TEST_AND_SET_1,
|
||||
"__sync_lock_test_and_set_1",
|
||||
BT_FN_I1_VPTR_I1, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_LOCK_TEST_AND_SET_2, "__sync_lock_test_and_set_2",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_LOCK_TEST_AND_SET_2,
|
||||
"__sync_lock_test_and_set_2",
|
||||
BT_FN_I2_VPTR_I2, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_LOCK_TEST_AND_SET_4, "__sync_lock_test_and_set_4",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_LOCK_TEST_AND_SET_4,
|
||||
"__sync_lock_test_and_set_4",
|
||||
BT_FN_I4_VPTR_I4, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_LOCK_TEST_AND_SET_8, "__sync_lock_test_and_set_8",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_LOCK_TEST_AND_SET_8,
|
||||
"__sync_lock_test_and_set_8",
|
||||
BT_FN_I8_VPTR_I8, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_LOCK_TEST_AND_SET_16, "__sync_lock_test_and_set_16",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_LOCK_TEST_AND_SET_16,
|
||||
"__sync_lock_test_and_set_16",
|
||||
BT_FN_I16_VPTR_I16, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_LOCK_RELEASE_N, "__sync_lock_release",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_LOCK_RELEASE_N, "__sync_lock_release",
|
||||
BT_FN_VOID_VAR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_LOCK_RELEASE_1, "__sync_lock_release_1",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_LOCK_RELEASE_1, "__sync_lock_release_1",
|
||||
BT_FN_VOID_VPTR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_LOCK_RELEASE_2, "__sync_lock_release_2",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_LOCK_RELEASE_2, "__sync_lock_release_2",
|
||||
BT_FN_VOID_VPTR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_LOCK_RELEASE_4, "__sync_lock_release_4",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_LOCK_RELEASE_4, "__sync_lock_release_4",
|
||||
BT_FN_VOID_VPTR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_LOCK_RELEASE_8, "__sync_lock_release_8",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_LOCK_RELEASE_8, "__sync_lock_release_8",
|
||||
BT_FN_VOID_VPTR, ATTR_NOTHROW_LEAF_LIST)
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_LOCK_RELEASE_16, "__sync_lock_release_16",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_LOCK_RELEASE_16, "__sync_lock_release_16",
|
||||
BT_FN_VOID_VPTR, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNCHRONIZE, "__sync_synchronize",
|
||||
DEF_SYNC_BUILTIN (BUILT_IN_SYNC_SYNCHRONIZE, "__sync_synchronize",
|
||||
BT_FN_VOID, ATTR_NOTHROW_LEAF_LIST)
|
||||
|
Loading…
Reference in New Issue
Block a user