http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46546
Summary: ix86_pad_returns may leave BB_END (bb) pointing to deleted insn Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: hjl.to...@gmail.com CC: ubiz...@gmail.com ix86_pad_returns has rtx ret = BB_END (bb); ... emit_jump_insn_before (gen_return_internal_long (), ret); delete_insn (ret); ... It may leave BB_END (bb) pointing to deleted insn. A patch is posed at http://gcc.gnu.org/ml/gcc-patches/2010-11/msg01930.html