diff options
author | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-18 01:56:03 +0000 |
---|---|---|
committer | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-18 01:56:03 +0000 |
commit | fdd27295d2f5f9c21c117bf4f7d67c723ed7995c (patch) | |
tree | bbebfb96d0d97a29670e84dd15e52b3e6c0e9e7c /gcc/emit-rtl.c | |
parent | b19fb6277ece8b0181d50e2a4aad46cd9421ea2e (diff) | |
download | linaro-gcc-fdd27295d2f5f9c21c117bf4f7d67c723ed7995c.tar.gz linaro-gcc-fdd27295d2f5f9c21c117bf4f7d67c723ed7995c.tar.bz2 linaro-gcc-fdd27295d2f5f9c21c117bf4f7d67c723ed7995c.zip |
* cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
handle barriers in a bb by checking that it points to a NULL bb.
* emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
(emit_barrier_after, emit_barrier): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89193 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index ec7bec39adc..d81d71c9e22 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -4057,6 +4057,7 @@ 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; @@ -4272,6 +4273,7 @@ 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; @@ -4668,6 +4670,7 @@ emit_barrier (void) { rtx barrier = rtx_alloc (BARRIER); INSN_UID (barrier) = cur_insn_uid++; + BLOCK_FOR_INSN (barrier) = NULL; add_insn (barrier); return barrier; } |