Oleg Endo <[email protected]> wrote:
> Original patch:
> http://gcc.gnu.org/ml/gcc-patches/2012-03/msg00208.html
>
> 'Tested' with..
>
> ../gcc-4_7-branch/configure --target=sh-elf --prefix=/usr/local
> --enable-languages=c,c++ --enable-multilib --disable-libssp
> --disable-nls --disable-werror --enable-lto --with-newlib --with-gnu-as
> --with-gnu-ld --with-system-zlib
>
> make all
>
> OK for 4.7 branch?
>
> ChangeLog:
>
> Backport from mainline
> 2012-03-03 Kaz Kojima <[email protected]>
> * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
> operand is CONST_INT. Take COSTS_N_INSNS into account.
> (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
> of shiftcosts.
OK as the fix for a regression from 4.6.
Regards,
kaz