Message ID | 1433427542-22278-1-git-send-email-james.greenhalgh@arm.com |
---|---|
State | New |
Headers | show |
On 06/04/2015 07:19 AM, James Greenhalgh wrote: > 2015-06-04 James Greenhalgh <james.greenhalgh@arm.com> > > * builtins.c (expand_builtin_atomic_compare_exchange): Call > emit_cmp_and_jump_insns with the mode of target. Ok. r~
diff --git a/gcc/builtins.c b/gcc/builtins.c index ec31e0e..9f9b735 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -5476,7 +5476,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);