diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-29 00:25:08 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-29 00:25:08 +0000 |
commit | d6a1c27f92e25d7d1c936ef6b58f58ffdda210a1 (patch) | |
tree | 97676af7eee281b7d513ba1855af4a279d64d235 /gcc/cfgrtl.c | |
parent | ba6690e379a82d6ff3829f201a3f9dea833d6052 (diff) | |
download | gcc-d6a1c27f92e25d7d1c936ef6b58f58ffdda210a1.tar.gz |
* cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45870 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r-- | gcc/cfgrtl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 953ff80dc83..f5e678545b7 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -860,7 +860,10 @@ redirect_edge_and_branch (e, target) /* If the insn doesn't go where we think, we're confused. */ if (JUMP_LABEL (insn) != old_label) abort (); - redirect_jump (insn, block_label (target), 0); + /* If the substitution doesn't succeed, die. This can happen + if the back end emitted unrecognizable instructions. */ + if (! redirect_jump (insn, block_label (target), 0)) + abort (); } if (rtl_dump_file) |