https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83396
--- Comment #68 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Can you try the #c63 patch? Perhaps the arm backend is yet another thing that doesn't really like debug insns outside of basic blocks...