diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 99218e29f3f..be5b1d9b8cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-09-19 Jan Hubicka + + * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read + of speculative flag. + 2013-09-19 Jakub Jelinek * omp-low.c (expand_omp_sections): Always pass len - 1 to diff --git a/gcc/cgraph.c b/gcc/cgraph.c index c8e1b9c4c3e..722f8ca97e9 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -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; }