[Bug target/78426] [7 Regression] wrong code with strncmp on SH

2016-11-29 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78426

--- Comment #5 from Kazumoto Kojima  ---
Fixed on 5/6 branches too.

[Bug target/78426] [7 Regression] wrong code with strncmp on SH

2016-11-29 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78426

--- Comment #4 from Kazumoto Kojima  ---
Author: kkojima
Date: Tue Nov 29 23:23:30 2016
New Revision: 242982

URL: https://gcc.gnu.org/viewcvs?rev=242982=gcc=rev
Log:
Backported from mainline
2016-11-19  Kaz Kojima  

PR target/78426
* config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
instead of force_reg.
(sh_expand_setmem): Likewise.


Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/config/sh/sh-mem.cc

[Bug target/78426] [7 Regression] wrong code with strncmp on SH

2016-11-29 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78426

--- Comment #3 from Kazumoto Kojima  ---
Author: kkojima
Date: Tue Nov 29 23:20:28 2016
New Revision: 242981

URL: https://gcc.gnu.org/viewcvs?rev=242981=gcc=rev
Log:
Backported from mainline
2016-11-19  Kaz Kojima  

PR target/78426
* config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
instead of force_reg.
(sh_expand_setmem): Likewise.


Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/config/sh/sh-mem.cc

[Bug target/78426] [7 Regression] wrong code with strncmp on SH

2016-11-21 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78426

Jeffrey A. Law  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||law at redhat dot com
 Resolution|--- |FIXED

--- Comment #2 from Jeffrey A. Law  ---
Fixed on trunk

[Bug target/78426] [7 Regression] wrong code with strncmp on SH

2016-11-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78426

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |7.0

[Bug target/78426] [7 Regression] wrong code with strncmp on SH

2016-11-19 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78426

--- Comment #1 from Kazumoto Kojima  ---
Author: kkojima
Date: Sat Nov 19 13:59:47 2016
New Revision: 242622

URL: https://gcc.gnu.org/viewcvs?rev=242622=gcc=rev
Log:
PR target/78426
* config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
instead of force_reg.
(sh_expand_setmem): Likewise.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/sh/sh-mem.cc