Fix flags for edges from/to entry/exit basic blocks.
authorDmitry Vyukov <dvyukov@google.com>
Mon, 12 Dec 2011 18:03:36 +0000 (10:03 -0800)
committerDmitry Vyukov <dvyukov@gcc.gnu.org>
Mon, 12 Dec 2011 18:03:36 +0000 (10:03 -0800)
* cgraphunit.c (init_lowered_empty_function):
Fix flags for new edges.

From-SVN: r182251

gcc/ChangeLog
gcc/cgraphunit.c

index 88b45d8fffe9db763dd8d5983250ed3eb6862856..d429ea573b60b4b671c09356882cbd0bfac99364 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-12  Dmitry Vyukov  <dvyukov@google.com>
+
+       * cgraphunit.c (init_lowered_empty_function):
+       Fix flags for new edges.
+
 2011-12-12  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/51510
index 886a2def0e56b408548d1f97a0d3e8693207b2a5..086effb8fb8b17baf45658257a296a0d0e34ecac 100644 (file)
@@ -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;
 }