Message ID | 201011291005.22383.ebotcazou@adacore.com |
---|---|
State | New |
Headers | show |
On Mon, Nov 29, 2010 at 10:05 AM, Eric Botcazou <ebotcazou@adacore.com> wrote: >> 2010-11-29 Eric Botcazou <ebotcazou@adacore.com> >> >> PR rtl-optimization/46337 >> Backport from mainline >> 2009-04-20 Ian Lance Taylor <iant@google.com> >> >> * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode. > > With right patch this time... Can you also apply this to the 4.3 branch? Thanks, Richard. > -- > Eric Botcazou >
> Can you also apply this to the 4.3 branch?
Sure, done.
Index: dse.c =================================================================== --- dse.c (revision 166670) +++ dse.c (working copy) @@ -826,7 +826,7 @@ replace_inc_dec (rtx *r, void *d) case POST_INC: { rtx r1 = XEXP (x, 0); - rtx c = gen_int_mode (Pmode, data->size); + rtx c = gen_int_mode (data->size, Pmode); emit_insn_before (gen_rtx_SET (Pmode, r1, gen_rtx_PLUS (Pmode, r1, c)), data->insn); @@ -837,7 +837,7 @@ replace_inc_dec (rtx *r, void *d) case POST_DEC: { rtx r1 = XEXP (x, 0); - rtx c = gen_int_mode (Pmode, -data->size); + rtx c = gen_int_mode (-data->size, Pmode); emit_insn_before (gen_rtx_SET (Pmode, r1, gen_rtx_PLUS (Pmode, r1, c)), data->insn);