diff mbox

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

Message ID 1338498022.2146.10.camel@yam-132-YW-E178-FTW
State New
Headers show

Commit Message

Oleg Endo May 31, 2012, 9 p.m. UTC
Original patch:
http://gcc.gnu.org/ml/gcc-patches/2012-03/msg00210.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.md (abssi2): Add TARGET_SH1 condition.

Comments

Kaz Kojima May 31, 2012, 10:04 p.m. UTC | #1
Oleg Endo <oleg.endo@t-online.de> wrote:
> Original patch:
> http://gcc.gnu.org/ml/gcc-patches/2012-03/msg00210.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.md (abssi2): Add TARGET_SH1 condition.

OK as the fix for a regression from 4.6.

Regards,
	kaz
diff mbox

Patch

Index: gcc/config/sh/sh.md
===================================================================
--- gcc/config/sh/sh.md	(revision 188026)
+++ gcc/config/sh/sh.md	(working copy)
@@ -4462,7 +4462,7 @@ 
   [(set (match_operand:SI 0 "arith_reg_dest" "")
   	(abs:SI (match_operand:SI 1 "arith_reg_operand" "")))
    (clobber (reg:SI T_REG))]
-  ""
+  "TARGET_SH1"
   "")
 
 (define_insn_and_split "*abssi2"