diff options
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 1c74cee..55cb034 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -678,8 +678,6 @@ cgraph_node::analyze (void) gimple_register_cfg_hooks (); bitmap_obstack_initialize (NULL); execute_pass_list (cfun, g->get_passes ()->all_lowering_passes); - free_dominance_info (CDI_POST_DOMINATORS); - free_dominance_info (CDI_DOMINATORS); compact_blocks (); bitmap_obstack_release (NULL); lowered = true; @@ -1076,7 +1074,7 @@ check_global_declaration (symtab_node *snode) && ! DECL_ARTIFICIAL (decl) && ! TREE_PUBLIC (decl)) { - if (TREE_NO_WARNING (decl)) + if (warning_suppressed_p (decl, OPT_Wunused)) ; else if (snode->referred_to_p (/*include_self=*/false)) pedwarn (input_location, 0, "%q+F used but never defined", decl); @@ -1892,10 +1890,6 @@ cgraph_node::expand (void) comdat groups. */ assemble_thunks_and_aliases (); release_body (); - /* Eliminate all call edges. This is important so the GIMPLE_CALL no longer - points to the dead function body. */ - remove_callees (); - remove_all_references (); } /* Node comparator that is responsible for the order that corresponds |