aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc/cfglayout.c
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2005-06-03 03:28:44 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2005-06-03 03:28:44 +0000
commitd51085f37e16c95804f0fdabb7b1226e4b4e7de9 (patch)
treef0dc8ad34f9fcaf27052e24e893a4284b5fee6e9 /contrib/gcc/cfglayout.c
parent1689e31de64dad8b8826dc924a82c7ba59a54bf4 (diff)
downloadsrc-d51085f37e16c95804f0fdabb7b1226e4b4e7de9.tar.gz
src-d51085f37e16c95804f0fdabb7b1226e4b4e7de9.zip
Gcc 3.4.4 release.
Notes
Notes: svn path=/vendor/gcc/dist/; revision=146895
Diffstat (limited to 'contrib/gcc/cfglayout.c')
-rw-r--r--contrib/gcc/cfglayout.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/gcc/cfglayout.c b/contrib/gcc/cfglayout.c
index 4794ee129d62..fa1b82c15d57 100644
--- a/contrib/gcc/cfglayout.c
+++ b/contrib/gcc/cfglayout.c
@@ -865,6 +865,18 @@ fixup_fallthru_exit_predecessor (void)
{
basic_block c = ENTRY_BLOCK_PTR->next_bb;
+ /* If the very first block is the one with the fall-through exit
+ edge, we have to split that block. */
+ if (c == bb)
+ {
+ bb = split_block (bb, NULL)->dest;
+ cfg_layout_initialize_rbi (bb);
+ bb->rbi->next = c->rbi->next;
+ c->rbi->next = bb;
+ bb->rbi->footer = c->rbi->footer;
+ c->rbi->footer = NULL;
+ }
+
while (c->rbi->next != bb)
c = c->rbi->next;