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

login
register
mail settings
Submitter Oleg Endo
Date May 31, 2012, 9 p.m.
Message ID <1338498022.2146.10.camel@yam-132-YW-E178-FTW>
Download mbox | patch
Permalink /patch/162234/
State New
Headers show

Comments

Oleg Endo - May 31, 2012, 9 p.m.
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.
Kaz Kojima - May 31, 2012, 10:04 p.m.
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

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"