diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 28ee9f739fc..5e0c1e6244d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-02-24 Georg-Johann Lay + + PR target/52261 + * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base + to test for unusedness in st X addressing. + 2012-02-24 Richard Guenther PR middle-end/52361 diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index d4cfaef0ca0..8959553f0fa 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -4019,8 +4019,8 @@ avr_out_movhi_mr_r_xmega (rtx insn, rtx op[], int *plen) else avr_asm_len ("st X+,%A1" CR_TAB "st X,%B1", op, plen, -2); - - return reg_unused_after (insn, src) + + return reg_unused_after (insn, base) ? "" : avr_asm_len ("sbiw r26,1", op, plen, 1); }