https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79069
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Maybe the easiest fix would be to emit the __morestack magic call patterns as ASM_OPERANDS like one that is emitted for asm goto. The cfgrtl.c etc. code has already years of fixes to handle those calls and deal with degenerate calls etc.