This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/46546] New: ix86_pad_returns may leave BB_END (bb) pointing to deleted insn


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: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com
                CC: ubizjak@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]