[SH, 4.7] Backport Fix sh64-elf build failure [1/3]

Oleg Endo oleg.endo@t-online.de
Thu May 31 20:56:00 GMT 2012


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  <kkojima@gcc.gnu.org>
	* 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2012-03-msg00208.patch
Type: text/x-patch
Size: 1615 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120531/29c9a081/attachment.bin>


More information about the Gcc-patches mailing list