aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@gcc.gnu.org>2010-11-20 21:10:46 +0000
committerJan Hubicka <hubicka@gcc.gnu.org>2010-11-20 21:10:46 +0000
commit430c6cebe1f5acbbc209c12717cfe085c759f73e (patch)
tree840116a4decf1497419fc4f57051a92015fa008f /gcc/cgraph.h
parent671769c38a2a4e4f76817307be3eb871f1acc399 (diff)
downloadgcc-430c6cebe1f5acbbc209c12717cfe085c759f73e.zip
gcc-430c6cebe1f5acbbc209c12717cfe085c759f73e.tar.gz
gcc-430c6cebe1f5acbbc209c12717cfe085c759f73e.tar.bz2
cgraph.c (ld_plugin_symbol_resolution_names): New.
* cgraph.c (ld_plugin_symbol_resolution_names): New. (dump_cgraph_node): Dump resolution. * cgraph.h (ld_plugin_symbol_resolution_names): Declare. (cgraph_comdat_can_be_unshared_p): Dclare. * lto-streamer-out.c (produce_symtab): Use cgraph_comdat_can_be_unshared_p. * ipa.c (cgraph_address_taken_from_non_vtable_p): New function. (cgraph_comdat_can_be_unshared_p): New function based on logic in cgraph_externally_visible_p. (cgraph_externally_visible_p): Use it. (varpool_externally_visible_p): Virtual tables can be unshared. * varpool.c (dump_varpool_node): Dump resolution. From-SVN: r166985
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 0334a15..99e4ee3 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -56,6 +56,7 @@ enum availability
struct lto_file_decl_data;
extern const char * const cgraph_availability_names[];
+extern const char * const ld_plugin_symbol_resolution_names[];
/* Function inlining information. */
@@ -695,6 +696,7 @@ void varpool_node_set_remove (varpool_node_set, struct varpool_node *);
void dump_varpool_node_set (FILE *, varpool_node_set);
void debug_varpool_node_set (varpool_node_set);
void ipa_discover_readonly_nonaddressable_vars (void);
+bool cgraph_comdat_can_be_unshared_p (struct cgraph_node *);
/* In predict.c */
bool cgraph_maybe_hot_edge_p (struct cgraph_edge *e);