From 7b3376a0da3e5de61c15899e4da1fc03ef7438d0 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 19 May 2014 03:01:12 +0200 Subject: ipa.c (symtab_remove_unreachable_nodes): Remove symbol from comdat group if its body was eliminated. * ipa.c (symtab_remove_unreachable_nodes): Remove symbol from comdat group if its body was eliminated. (comdat_can_be_unshared_p_1): Static symbols can always be privatized. * symtab.c (symtab_remove_from_same_comdat_group): Break out from ... (symtab_unregister_node): ... this one. (verify_symtab_base): More strict checking of comdats. * cgraph.h (symtab_remove_from_same_comdat_group): Declare. From-SVN: r210598 --- gcc/cgraph.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/cgraph.h') diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 8f13ecb..9dc6f01 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -725,6 +725,7 @@ enum symbol_partitioning_class /* In symtab.c */ void symtab_register_node (symtab_node *); void symtab_unregister_node (symtab_node *); +void symtab_remove_from_same_comdat_group (symtab_node *); void symtab_remove_node (symtab_node *); symtab_node *symtab_get_node (const_tree); symtab_node *symtab_node_for_asm (const_tree asmname); -- cgit v1.1