cgraph.c (cgraph_create_edge_1): Avoid uninitialized read of speculative flag.
authorJan Hubicka <jh@suse.cz>
Thu, 19 Sep 2013 12:20:47 +0000 (14:20 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 19 Sep 2013 12:20:47 +0000 (12:20 +0000)
* cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
of speculative flag.

From-SVN: r202740

gcc/ChangeLog
gcc/cgraph.c

index 99218e29f3ffb7b5eb62dd7335e1b5772131acab..be5b1d9b8cccce87a471212d0f633519cda14880 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-19  Jan Hubicka  <jh@suse.cz>
+
+       * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
+       of speculative flag.
+
 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
 
        * omp-low.c (expand_omp_sections): Always pass len - 1 to
index c8e1b9c4c3e124610678a6ea8b500e2b4a89a20e..722f8ca97e9631391d5cf59b093246f7c17e0f0f 100644 (file)
@@ -870,12 +870,12 @@ cgraph_create_edge_1 (struct cgraph_node *caller, struct cgraph_node *callee,
     edge->call_stmt_cannot_inline_p = true;
   else
     edge->call_stmt_cannot_inline_p = false;
-  if (call_stmt && caller->call_site_hash)
-    cgraph_add_edge_to_call_site_hash (edge);
 
   edge->indirect_info = NULL;
   edge->indirect_inlining_edge = 0;
   edge->speculative = false;
+  if (call_stmt && caller->call_site_hash)
+    cgraph_add_edge_to_call_site_hash (edge);
 
   return edge;
 }