aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-09-28 17:25:08 -0700
committerRichard Henderson <rth@gcc.gnu.org>2001-09-28 17:25:08 -0700
commita3623c481c3379242f97892668cee5a74bdd99b2 (patch)
tree97676af7eee281b7d513ba1855af4a279d64d235 /gcc
parent1ab656771ad71a14ccc39b3f38efd54a83473a86 (diff)
downloadgcc-a3623c481c3379242f97892668cee5a74bdd99b2.zip
gcc-a3623c481c3379242f97892668cee5a74bdd99b2.tar.gz
gcc-a3623c481c3379242f97892668cee5a74bdd99b2.tar.bz2
* cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
From-SVN: r45870
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cfgrtl.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3b5970c..3c3e8a3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2001-09-28 Richard Henderson <rth@redhat.com>
+
+ * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
+
2001-09-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index 953ff80..f5e6785 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)