> I've committed the attached patch to fix PR67573. LRA reveals > that scratch registers in *call_*pcrel should be defined as > early clobbered. The patch is tested on sh4-unkown-linux-gnu.
I backported the fix for PR target/67573 to 5-branch. The trunk patch applies without problem. Tested on sh4-unknown-linux-gnu. Committed as revision 227953. Regards, kaz -- 2015-09-21 Kaz Kojima <kkoj...@gcc.gnu.org> Backport from mainline 2015-09-16 Kaz Kojima <kkoj...@gcc.gnu.org> PR target/67573 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand. (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.