diff options
author | Jan Hubicka <jh@suse.cz> | 2010-05-12 15:49:34 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-05-12 13:49:34 +0000 |
commit | b34fd25c83e4a098405b5d520a260fb3ac32b14e (patch) | |
tree | 8ecab4363a29f5b524dad95f3f7d8676be43b1c6 /gcc/cgraph.h | |
parent | 49f19b1cfcccac7b821d14db46afeb323f56a87d (diff) | |
download | gcc-b34fd25c83e4a098405b5d520a260fb3ac32b14e.zip gcc-b34fd25c83e4a098405b5d520a260fb3ac32b14e.tar.gz gcc-b34fd25c83e4a098405b5d520a260fb3ac32b14e.tar.bz2 |
cgraph.h (struct varpool_node): Add aux.
* cgraph.h (struct varpool_node): Add aux.
* varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
* varpool.c (varpool_remove_node): Do not remove initializer.
(varpool_reset_queue): Export.
(varpool_finalize_decl): Volatile vars are forced to be output.
* lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
replaced decl.
* ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
process_references, varpool_can_remove_if_no_refs): New functions.
(cgraph_remove_unreachable_nodes): Handle variables too.
From-SVN: r159321
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 97df56b..eaf9bfd 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -439,6 +439,7 @@ struct GTY((chain_next ("%h.next"), chain_prev ("%h.prev"))) varpool_node { nodes a pointer to the normal node. */ struct varpool_node *extra_name; struct ipa_ref_list ref_list; + PTR GTY ((skip)) aux; /* Ordering of all cgraph nodes. */ int order; @@ -673,6 +674,7 @@ void varpool_remove_unreferenced_decls (void); void varpool_empty_needed_queue (void); bool varpool_extra_name_alias (tree, tree); const char * varpool_node_name (struct varpool_node *node); +void varpool_reset_queue (void); /* Walk all reachable static variables. */ #define FOR_EACH_STATIC_VARIABLE(node) \ |