aboutsummaryrefslogtreecommitdiff
path: root/gcc/varpool.c
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/varpool.c
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/varpool.c')
-rw-r--r--gcc/varpool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c
index 8822660..d266ce9 100644
--- a/gcc/varpool.c
+++ b/gcc/varpool.c
@@ -241,6 +241,9 @@ dump_varpool_node (FILE *f, struct varpool_node *node)
fprintf (f, " output");
if (node->externally_visible)
fprintf (f, " externally_visible");
+ if (node->resolution != LDPR_UNKNOWN)
+ fprintf (f, " %s",
+ ld_plugin_symbol_resolution_names[(int)node->resolution]);
if (node->in_other_partition)
fprintf (f, " in_other_partition");
else if (node->used_from_other_partition)