Message ID | 20111112.123910.02275607.kkojima@rr.iij4u.or.jp |
---|---|
State | New |
Headers | show |
--- ORIG/trunk/gcc/optabs.c 2011-11-11 08:00:04.000000000 +0900 +++ trunk/gcc/optabs.c 2011-11-12 12:34:18.000000000 +0900 @@ -7440,6 +7440,7 @@ expand_atomic_compare_and_swap (rtx *pta just in case we need that path down below. */ if (ptarget_oval == NULL || (target_oval = *ptarget_oval) == NULL + || !register_operand (target_oval, mode) || reg_overlap_mentioned_p (expected, target_oval)) target_oval = gen_reg_rtx (mode);