https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66215
--- Comment #12 from Dominik Vogt <vogt at linux dot vnet.ibm.com> --- Created attachment 35597 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35597&action=edit Experimental fix 2 Version 2 of the patch with the suggested changes and test fixes. Note: Functions without active insns will get the pre-label NOPs, the comment "# post-label NOPs" but no NOPs after that. Not sure whether it's worth the effort to clean this up. Please test if this fixes the observed problem (it does for me).