https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66930
--- Comment #1 from Oleg Endo <olegendo at gcc dot gnu.org> --- (In reply to John Paul Adrian Glaubitz from comment #0) > As previously discussed in private mail, I am now filing a bug report for > the regression in gcc-5 that was introduced somewhere between r222550 and > r225710 which leads to the miscompilation of gcc/gengtype.c when building a > native compiler on SH [1]: Looking at the SVN log for gcc-5-branch: svn log -r222550:r225710 shows the following SH specific commits... ------------------------------------------------------------------------ r223722 | kkojima | 2015-05-27 07:37:06 +0900 (Wed, 27 May 2015) | 5 lines PR target/65979 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and take into account the case that operands[1] and operands[2] are the same register. ------------------------------------------------------------------------ r225094 | olegendo | 2015-06-27 09:46:58 +0900 (Sat, 27 Jun 2015) | 9 lines gcc/ Backport from mainline 2015-06-25 Oleg Endo <olege...@gcc.gnu.org> PR target/65979 PR target/66611 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if the replacement insn will work. ------------------------------------------------------------------------ r225660 | kkojima | 2015-07-10 18:50:18 +0900 (Fri, 10 Jul 2015) | 5 lines PR target/66780 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03 change for target/65249.