I've committed the attached patch to fix PR target/65249. The patch
reduces R0-register pressure for the problematic situation and fixes
the ICE reported in PR65249 with -mno-lra. It gives a bit better code
for the test case of that PR with -mlra too.
Tested with sh4-unknown-linux-gnu. I'll back
The attached patches are to fix PR target/65249 which is a 4.9/5
regression. It avoids yet another R0_REGS spill failure with
pre-allocating R0 reg in symGOT_load when the loading symbol is
__stack_chk_guard. Although the problem went away with -mlra
and LRA would be the real fix for this issue,