From: Jan Hubicka Date: Fri, 6 Dec 2019 08:51:43 +0000 (+0100) Subject: cgraphclones.c (cgraph_node::create_clone): Only localize toplevel functions, not... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7f6be76baf19eab6830870f4a63e17755552577;p=gcc.git cgraphclones.c (cgraph_node::create_clone): Only localize toplevel functions, not inline clones. * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel functions, not inline clones. From-SVN: r279036 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9108027b334..beac212417d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-12-06 Jan Hubicka + + * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel + functions, not inline clones. + 2019-12-06 Jan Hubicka * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR. diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index f2dfb4e2d67..dbdeb4510b4 100644 --- a/gcc/cgraphclones.c +++ b/gcc/cgraphclones.c @@ -450,7 +450,8 @@ cgraph_node::create_clone (tree new_decl, profile_count prof_count, && opt_for_fn (decl, flag_profile_partial_training) && nonzero && count.ipa_p () - && !count.ipa ().nonzero_p ()) + && !count.ipa ().nonzero_p () + && !inlined_to) localize_profile (this); if (!new_inlined_to)