aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-03-10 19:32:17 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2003-03-10 18:32:17 +0000
commit912b79e7e94435b40b1a8ac4091014dde3a4f7d8 (patch)
tree8dab2f94ceeead90284703d5675890c42f44ab45 /gcc
parentc19de7aa687c199eb6e9e9a76bf733d74cfacd2b (diff)
downloadgcc-912b79e7e94435b40b1a8ac4091014dde3a4f7d8.zip
gcc-912b79e7e94435b40b1a8ac4091014dde3a4f7d8.tar.gz
gcc-912b79e7e94435b40b1a8ac4091014dde3a4f7d8.tar.bz2
* cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
From-SVN: r64103
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/cfgcleanup.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8ac10a2..0dbb591 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -44,6 +44,8 @@
Mon Mar 10 15:30:36 CET 2003 Jan Hubicka <jh@suse.cz>
+ * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
+
* cfgcleanup.c (merge_blocks): Return where to iterate next.
(try_optimize_cfg): Use return value of merge_blocks
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c
index 6ccc3ee..7ed5c3d 100644
--- a/gcc/cfgcleanup.c
+++ b/gcc/cfgcleanup.c
@@ -861,6 +861,8 @@ merge_blocks (e, b, c, mode)
b_has_incoming_fallthru = (tmp_edge != NULL);
b_fallthru_edge = tmp_edge;
next = b->prev_bb;
+ if (next == c)
+ next = next->prev_bb;
/* Otherwise, we're going to try to move C after B. If C does
not have an outgoing fallthru, then it can be moved