Message ID | DBB9399C-977F-4B8D-A3C7-0DDB7D0EE0F2@comcast.net |
---|---|
State | New |
Headers | show |
diff --git a/gcc/optabs.c b/gcc/optabs.c index 353727f..a091deb 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -7174,6 +7174,8 @@ expand_atomic_test_and_set (rtx target, rtx mem, enum memmodel model) { trueval = const1_rtx; subtarget = target ? target : gen_reg_rtx (mode); + if (subtarget == const0_rtx) + subtarget = gen_reg_rtx (mode); } else {