This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/46546] New: ix86_pad_returns may leave BB_END (bb) pointing to deleted insn
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Nov 2010 19:49:26 +0000
- Subject: [Bug target/46546] New: ix86_pad_returns may leave BB_END (bb) pointing to deleted insn
- Auto-submitted: auto-generated
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