https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63718
--- Comment #6 from Joey Ye <joey.ye at arm dot com> --- (In reply to vries from comment #5) > Could you try out the patch and see if it fixes things for you? > Tom, thanks for the quick action. Apparantly this patch should recover the bootstrap. I will test it and come back to you (bootstraping thumb1 with qemu takes hours!) However, I think the fix is too conservative. There are plenty of chances that r0-r3 will not be clobbered by return. For example armv6-m will pretty much never uses r0-r3 implicitly.