https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66358
--- Comment #2 from Oleg Endo <olegendo at gcc dot gnu.org> --- There was this idea of doing some sort of pre-reg-alloc or special case handling for R0 in an SH specific RTL pass before regular RA -- see PR 64785. One option could be to have a simple version of that pass for GCC 5 to fix this PR (and maybe several other of this kind). For GCC 6 we could probably just add -mno-lra option and make -mlra the default setting.