https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91628
--- Comment #10 from Florian Weimer <fw at gcc dot gnu.org> --- (In reply to rdapp from comment #9) > I opted for inline assembly to make sure r12 is not changed directly before > the function call. Do you have an idea to guarantee this in another way? Wouldn't an out-of-line function in an .S file work? It's a bit annoying because makefile changes will be needed, but maybe that's not too bad. Does D support top-level asm statements? Then perhaps you could use that to define an out-of-line function.