Commit ef97beff by Jakub Jelinek Committed by Jakub Jelinek

stmt.c (expand_decl_cleanup): Emit a dummy insn after last_unconditional_cleanup.

	* stmt.c (expand_decl_cleanup): Emit a dummy insn after
	last_unconditional_cleanup.

From-SVN: r34681
parent 0b4565c9
2000-06-24 Jakub Jelinek <jakub@redhat.com>
* stmt.c (expand_decl_cleanup): Emit a dummy insn after
last_unconditional_cleanup.
2000-06-24 Bernd Schmidt <bernds@cygnus.co.uk>
* tree.def (VECTOR_TYPE): New node type.
......
......@@ -4064,6 +4064,13 @@ expand_decl_cleanup (decl, cleanup)
{
thisblock->data.block.last_unconditional_cleanup
= get_last_insn ();
/* When we insert instructions after the last unconditional cleanup,
we don't adjust last_insn. That means that a later add_insn will
clobber the instructions we've just added. The easiest way to
fix this is to just insert another instruction here, so that the
instructions inserted after the last unconditional cleanup are
never the last instruction. */
emit_note (NULL_PTR, NOTE_INSN_DELETED);
thisblock->data.block.cleanup_ptr = &thisblock->data.block.cleanups;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment