summaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2011-10-21 13:04:20 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2011-10-21 11:04:20 +0000
commit25e2c40dd7dd02ff9f5610f7d2ffdef993bb32b8 (patch)
tree29bdffd75d1c506f358ffd6cda8765372ce7fae1 /gcc/lto
parent49008cb98e890a588788661fb00763910a891b38 (diff)
downloadgcc-25e2c40dd7dd02ff9f5610f7d2ffdef993bb32b8.tar.gz
cgraph.c (dump_cgraph_node): Dump alias flag.
* cgraph.c (dump_cgraph_node): Dump alias flag. * cgraphunit.c (handle_alias_pairs): Handle weakrefs with no destination. (get_alias_symbol): New function. (output_weakrefs): Output also weakrefs with no destinatoin. (lto_output_node): Output weakref alias flag when at function boundary. From-SVN: r180292
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/lto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 40afc7f1c9b..c50a97ec205 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -1481,6 +1481,8 @@ add_varpool_node_to_partition (ltrans_partition part, struct varpool_node *vnode
{
varpool_node_set_iterator vsi;
+ vnode = varpool_variable_node (vnode, NULL);
+
/* If NODE is already there, we have nothing to do. */
vsi = varpool_node_set_find (part->varpool_set, vnode);
if (!vsi_end_p (vsi))