From: Dmitry Vyukov Date: Mon, 12 Dec 2011 18:03:36 +0000 (-0800) Subject: Fix flags for edges from/to entry/exit basic blocks. X-Git-Tag: releases/gcc-4.7.0~1597 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7c8a2da7791fefb361db7f4e1a25cecb0a2b7e8;p=thirdparty%2Fgcc.git Fix flags for edges from/to entry/exit basic blocks. * cgraphunit.c (init_lowered_empty_function): Fix flags for new edges. From-SVN: r182251 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 88b45d8fffe9..d429ea573b60 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-12-12 Dmitry Vyukov + + * cgraphunit.c (init_lowered_empty_function): + Fix flags for new edges. + 2011-12-12 Jakub Jelinek PR middle-end/51510 diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 886a2def0e56..086effb8fb8b 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -1459,8 +1459,8 @@ init_lowered_empty_function (tree decl) /* Create BB for body of the function and connect it properly. */ bb = create_basic_block (NULL, (void *) 0, ENTRY_BLOCK_PTR); - make_edge (ENTRY_BLOCK_PTR, bb, 0); - make_edge (bb, EXIT_BLOCK_PTR, 0); + make_edge (ENTRY_BLOCK_PTR, bb, EDGE_FALLTHRU); + make_edge (bb, EXIT_BLOCK_PTR, EDGE_FALLTHRU); return bb; }