diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-16 15:02:34 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-16 15:02:34 +0000 |
commit | aca3df3b3d31b0d83f536a5d3012b3f550b47ba0 (patch) | |
tree | fcdfc3d0c661e959702bf48ed72c7a09f4b9f923 /gcc/symtab.c | |
parent | 6ee295d9872f6bf3404fba2df7c7ddafacb2ca24 (diff) | |
download | gcc-aca3df3b3d31b0d83f536a5d3012b3f550b47ba0.tar.gz |
Revert:
* symtab.c (symtab_node::reset_section): New method.
* cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
for localization.
* cgraph.h (reset_section): Declare.
* ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
do not consider comdat locals.
* cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
for new symbol.
* ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
(update_visibility_by_resolution_info): Consider UNDEF; fix checking;
reset sections of symbols dragged out of the comdats.
(function_and_variable_visibility): Reset sections of localized symbols.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211710 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/symtab.c')
-rw-r--r-- | gcc/symtab.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/symtab.c b/gcc/symtab.c index b68a16fcde8..8158acc5bda 100644 --- a/gcc/symtab.c +++ b/gcc/symtab.c @@ -1176,21 +1176,6 @@ symtab_node::set_section (const char *section) symtab_for_node_and_aliases (this, set_section_1, const_cast<char *>(section), true); } -/* Reset section of NODE. That is when NODE is being brought local - we may want to clear section produced for comdat group and depending - on function-sections produce now, local, unique section for it. */ - -void -symtab_node::reset_section () -{ - if (!this->implicit_section) - return; - this->set_section (NULL); - resolve_unique_section (this->decl, 0, - is_a <cgraph_node *> (this) - ? flag_function_sections : flag_data_sections); -} - /* Worker for symtab_resolve_alias. */ static bool |