https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91628
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Florian Weimer from comment #10) > (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. .S has the disadvantage that you need to take care about .note.GNU-stack etc. If D doesn't have toplevel asm, you could use toplevel asm in a C source perhaps.