https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152
--- Comment #46 from Iain Sandoe <iains at gcc dot gnu.org> --- Created attachment 50737 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50737&action=edit trial patch for testing looking at the way other ports handle things like use of registers in veneers etc. it seems that adding to clobbers in the call lowering is a usable mechanism. This patch does seem the DTRT on gcc-10.3 when tested against the original code (although the patch is against master). Otherwise, this is as yet untested ..