From b578dbd7d6070672283c334416fb67ce214f3a64 Mon Sep 17 00:00:00 2001
From: Richard Henderson <rth@cygnus.com>
Date: Tue, 22 Aug 2000 11:12:15 -0700
Subject: [PATCH] * flow.c (tidy_fallthru_edge): Update b->end properly.

From-SVN: r35879
---
 gcc/ChangeLog | 4 ++++
 gcc/flow.c    | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5700c4f16355..983a2fb8e458 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2000-08-22  Richard Henderson  <rth@cygnus.com>
+
+	* flow.c (tidy_fallthru_edge): Update b->end properly.
+
 2000-08-22  Stan Cox  <scox@redhat.com>
 
         * Makefile.in (OBJS): Add dependence.o.
diff --git a/gcc/flow.c b/gcc/flow.c
index ad3403974a65..1291ac404a60 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -2554,7 +2554,9 @@ tidy_fallthru_edge (e, b, c)
 	  NOTE_SOURCE_FILE (q) = 0;
 	}
       else
-	b->end = q = PREV_INSN (q);
+	q = PREV_INSN (q);
+
+      b->end = q;
     }
 
   /* Selectively unlink the sequence.  */
-- 
GitLab