https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84010
--- Comment #2 from James Clarke <jrtc27 at jrtc27 dot com> --- Created attachment 43230 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43230&action=edit 0001-sparc-Fix-modes-for-TLS-offsets.patch Here is a completely untested patch which should in theory resolve this series of issues. This doesn't introduce rematerialization for them (or, if it's supposed to already, resolve whatever's stopping it), but that's a future optimisation. I'm surprised these are even being scheduled so far apart and spilled, but hey.