diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2015-10-08 18:44:02 +0200 |
---|---|---|
committer | Linaro Code Review <review@review.linaro.org> | 2015-10-10 11:19:08 +0000 |
commit | 1bfc7eec75c647b93b5a3a6bfc496c91c661aca0 (patch) | |
tree | 615dcb72f2ef85156263e0da48f04c626f1f242c /gcc | |
parent | b7a44cc89ac3fc80f7f9a35d6124844ee4341edc (diff) |
gcc/
Backport from trunk r224148.
2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
* builtins.c (expand_builtin_atomic_compare_exchange): Call
emit_cmp_and_jump_insns with the mode of target.
Change-Id: I84376684b14641ee7b192f6318e9348df8a0dc0b
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/builtins.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 3d6f693d7b6..c95f4ed3fcd 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -5477,7 +5477,8 @@ expand_builtin_atomic_compare_exchange (machine_mode mode, tree exp, the normal case where EXPECT is totally private, i.e. a register. At which point the store can be unconditional. */ label = gen_label_rtx (); - emit_cmp_and_jump_insns (target, const0_rtx, NE, NULL, VOIDmode, 1, label); + emit_cmp_and_jump_insns (target, const0_rtx, NE, NULL, + GET_MODE (target), 1, label); emit_move_insn (expect, oldval); emit_label (label); |