diff options
author | Graham Stott <grahams@redhat.com> | 2001-11-22 14:30:37 +0000 |
---|---|---|
committer | Graham Stott <grahams@gcc.gnu.org> | 2001-11-22 14:30:37 +0000 |
commit | 09eb1aab55cdd70925773cc5855f08f0ef315086 (patch) | |
tree | 4a5ebac76f018ce756ea63f1997e6517c6939581 /gcc/cfgrtl.c | |
parent | 44a5da099ebaa8aa06912fb71b8114e495c839c6 (diff) | |
download | gcc-09eb1aab55cdd70925773cc5855f08f0ef315086.zip gcc-09eb1aab55cdd70925773cc5855f08f0ef315086.tar.gz gcc-09eb1aab55cdd70925773cc5855f08f0ef315086.tar.bz2 |
cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit replacement jump after original jump.
* cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
replacement jump after original jump.
(verify_flow_info): Remove redundent initialisation.
Handle reaching end of insn list before finding a BARRIER.
Only issue one missing barrier diagnostic.
From-SVN: r47269
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r-- | gcc/cfgrtl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 2687e73..48d0e85 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -710,7 +710,7 @@ try_redirect_by_replacing_jump (e, target) rtx target_label = block_label (target); rtx barrier; - emit_jump_insn_after (gen_jump (target_label), kill_from); + emit_jump_insn_after (gen_jump (target_label), insn); JUMP_LABEL (src->end) = target_label; LABEL_NUSES (target_label)++; if (rtl_dump_file) @@ -1634,10 +1634,10 @@ verify_flow_info () } if (!has_fallthru) { - rtx insn = bb->end; + rtx insn; /* Ensure existence of barrier in BB with no fallthru edges. */ - for (insn = bb->end; GET_CODE (insn) != BARRIER; + for (insn = bb->end; !insn || GET_CODE (insn) != BARRIER; insn = NEXT_INSN (insn)) if (!insn || (GET_CODE (insn) == NOTE @@ -1645,6 +1645,7 @@ verify_flow_info () { error ("Missing barrier after block %i", bb->index); err = 1; + break; } } |