cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb, don't inspect BLOCK_FOR_INSN for barriers.

* cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
	don't inspect BLOCK_FOR_INSN for barriers.
	* emit-rtl.c (emit_barrier_before): Revert last change.
	(emit_barrier_after, emit_barrier): Ditto.

From-SVN: r89308
This commit is contained in:
Hans-Peter Nilsson 2004-10-20 00:23:16 +00:00 committed by Hans-Peter Nilsson
parent a47498de53
commit 9524880c99
3 changed files with 7 additions and 6 deletions

View File

@ -1,5 +1,10 @@
2004-10-20 Hans-Peter Nilsson <hp@bitrange.com>
* cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
don't inspect BLOCK_FOR_INSN for barriers.
* emit-rtl.c (emit_barrier_before): Revert last change.
(emit_barrier_after, emit_barrier): Ditto.
* doc/extend.texi (Extended Asm): Warn and provide example
solution for using a call-clobbered asm register.
(Local Reg Vars): Similar. Cross-reference example.

View File

@ -2075,9 +2075,8 @@ rtl_verify_flow_info_1 (void)
for (x = BB_HEAD (bb); x != NEXT_INSN (BB_END (bb)); x = NEXT_INSN (x))
/* We may have a barrier inside a basic block before dead code
elimination. They always have a NULL BLOCK_FOR_INSN. */
if (BLOCK_FOR_INSN (x) != bb
&& !(BARRIER_P (x) && BLOCK_FOR_INSN (x) == NULL))
elimination. There is no BLOCK_FOR_INSN field in a barrier. */
if (!BARRIER_P (x) && BLOCK_FOR_INSN (x) != bb)
{
debug_rtx (x);
if (! BLOCK_FOR_INSN (x))

View File

@ -4057,7 +4057,6 @@ emit_barrier_before (rtx before)
rtx insn = rtx_alloc (BARRIER);
INSN_UID (insn) = cur_insn_uid++;
BLOCK_FOR_INSN (insn) = NULL;
add_insn_before (insn, before);
return insn;
@ -4273,7 +4272,6 @@ emit_barrier_after (rtx after)
rtx insn = rtx_alloc (BARRIER);
INSN_UID (insn) = cur_insn_uid++;
BLOCK_FOR_INSN (insn) = NULL;
add_insn_after (insn, after);
return insn;
@ -4670,7 +4668,6 @@ emit_barrier (void)
{
rtx barrier = rtx_alloc (BARRIER);
INSN_UID (barrier) = cur_insn_uid++;
BLOCK_FOR_INSN (barrier) = NULL;
add_insn (barrier);
return barrier;
}