Richard Sandiford writes: > PR 45074 showed up a rather embarrassing oversight in the MIPS backend: > global registers were still being treated as call-saved. > > Fixed with the attached patch. Tested on mips64-linux-gnu and applied. > > Richard > > > gcc/ > * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global > registers.
This bug is also PR target/43700, a regression since gcc-4.4. Do you want to backport the fix, or perhaps just mark PR43700 as fixed in 4.7.0? /Mikael