diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-18 08:33:10 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-18 08:33:10 +0000 |
commit | dedafd2cd4b339eb6fdb1f80218e24914c0274f6 (patch) | |
tree | bbf972914f127706e71580a3324b0a847d45b5fa | |
parent | e0eaac8049ca6b188697d265c857df02a34722ee (diff) | |
download | gcc-dedafd2cd4b339eb6fdb1f80218e24914c0274f6.tar.gz |
* lto-symtab.c (lto_varpool_replace_node): Remove code handling
extra name aliases.
(lto_symtab_resolve_can_prevail_p): Likewise.
(lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
* cgraphbuild.c (record_reference): Remove extra body alias code.
(mark_load): Likewise.
(mark_store): Likewise.
* cgraph.h (varpool_node): Remove extra_name filed;
add alias_of and extraname_alias.
(varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
(varpool_alias_aliased_node): New inline function.
(varpool_variable_node): New function.
* cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
* ipa-ref.c (ipa_record_reference): Allow aliases on variables.
* lto-cgraph.c (lto_output_varpool_node): Update streaming.
(input_varpool_node): Likewise.
* lto-streamer-out.c (produce_symtab): Remove extra name aliases.
(varpool_externally_visible_p): Remove extra body alias code.
(function_and_variable_visibility): Likewise.
* tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
(ipa_pta_execute): Use it.
* varpool.c (varpool_remove_node): Remove extra name alias code.
(varpool_mark_needed_node): Likewise.
(varpool_analyze_pending_decls): Analyze aliases.
(assemble_aliases): New functoin.
(varpool_assemble_decl): Use it.
(varpool_create_variable_alias): New function.
(varpool_extra_name_alias): Rewrite.
(varpool_for_node_and_aliases): New function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175168 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/passes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/passes.c b/gcc/passes.c index 23963a01e31..fb9de2b077e 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -2190,7 +2190,7 @@ ipa_write_summaries (void) vset = varpool_node_set_new (); for (vnode = varpool_nodes; vnode; vnode = vnode->next) - if (vnode->needed && !vnode->alias) + if (vnode->needed && (!vnode->alias || vnode->alias_of)) varpool_node_set_add (vset, vnode); ipa_write_summaries_1 (set, vset); |