summaryrefslogtreecommitdiff
path: root/gcc/cgraphclones.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-12 22:23:55 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-12 22:23:55 +0000
commit922f76a868d0451dcb7227dc2a4fe7a1bb28bf61 (patch)
tree614d47109aba7fe36bcb27ee602307278455a372 /gcc/cgraphclones.c
parent454eae94e46e60b29dd6b6e97c911294527e972e (diff)
downloadgcc-922f76a868d0451dcb7227dc2a4fe7a1bb28bf61.tar.gz
* 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@211600 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphclones.c')
-rw-r--r--gcc/cgraphclones.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c
index 6f83d746058..94c9760b37f 100644
--- a/gcc/cgraphclones.c
+++ b/gcc/cgraphclones.c
@@ -293,6 +293,7 @@ set_new_clone_decl_and_node_flags (cgraph_node *new_node)
new_node->externally_visible = 0;
new_node->local.local = 1;
new_node->lowered = true;
+ new_node->reset_section ();
}
/* Duplicate thunk THUNK if necessary but make it to refer to NODE.