This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
add_insn_after() abort question
- To: gcc-bugs at gcc dot gnu dot org
- Subject: add_insn_after() abort question
- From: Toshiyasu Morita <tm at netcom dot com>
- Date: Thu, 9 Mar 2000 18:13:26 -0800 (PST)
I have some code which causes gcc to abort in the following code:
/* Add INSN into the doubly-linked list after insn AFTER. This and
the next should be the only functions called to insert an insn once
delay slots have been filled since only they know how to update a
SEQUENCE. */
void
add_insn_after (insn, after)
rtx insn, after;
{
rtx next = NEXT_INSN (after);
if (optimize && INSN_DELETED_P (after))
abort (); <- here
I'm trying to understand why it's not legal to add an insn after a
deleted insns when optimizing?
Toshi