https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61586
--- Comment #3 from Richard Henderson <rth at gcc dot gnu.org> --- (In reply to Uroš Bizjak from comment #2) > (I also wonder why we have to break the loop for naked USEs and CLOBBERs. We > should just skip the problematic insn and continue - as proposed in the > above patch). Because it's not breaking out of the loop, it's breaking out of the switch, case INSN. I don't think we should special-case TRAP_IF, but rather special-case BARRIER. Suppose some -O0 test case involving __builtin_unreachable, which expands to no code at all. Otherwise, I think the close_shadow_notrapb change is good.