diff options
author | Jan Hubicka <jh@suse.cz> | 2010-05-22 16:48:40 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-05-22 14:48:40 +0000 |
commit | 9f90e80a1823bfb50fdbdac0eae44205fc436e56 (patch) | |
tree | c6700f8a244d310bf2e05c428d125caeecbd1ffe /gcc/cgraph.h | |
parent | a2c9fe42531a2ef2259e4128c50632b2df37202b (diff) | |
download | gcc-9f90e80a1823bfb50fdbdac0eae44205fc436e56.zip gcc-9f90e80a1823bfb50fdbdac0eae44205fc436e56.tar.gz gcc-9f90e80a1823bfb50fdbdac0eae44205fc436e56.tar.bz2 |
decl2.c (maybe_emit_vtables): Produce same comdat group when outputting comdat vtables.
* decl2.c (maybe_emit_vtables): Produce same comdat group when outputting
comdat vtables.
(cxx_callgraph_analyze_expr): Remove code marking vtables needed.
* cgraph.h (struct varpool_node): Add same_comdat_group.
* lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
pointer.
(output_varpool): Update call of lto_output_varpool_node.
(input_varpool): Read same_comdat_group pointer.
(input_varpool_1): Fixup same_comdat_group pointer.
* ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
group is needed, all are.
* varpool.c (varpool_remove_node): Remove node from same comdat group
linklist too.
(varpool_analyze_pending_decls): Walk same comdat groups.
From-SVN: r159699
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index b092301..a9a2962 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -457,6 +457,8 @@ struct GTY((chain_next ("%h.next"), chain_prev ("%h.prev"))) varpool_node { /* For normal nodes a pointer to the first extra name alias. For alias nodes a pointer to the normal node. */ struct varpool_node *extra_name; + /* Circular list of nodes in the same comdat group if non-NULL. */ + struct varpool_node *same_comdat_group; struct ipa_ref_list ref_list; PTR GTY ((skip)) aux; /* Ordering of all cgraph nodes. */ |