diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cgraphclones.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9108027..beac212 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2019-12-06 Jan Hubicka <hubicka@ucw.cz> + * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel + functions, not inline clones. + +2019-12-06 Jan Hubicka <hubicka@ucw.cz> + * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR. 2019-12-06 Richard Biener <rguenther@suse.de> diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index f2dfb4e..dbdeb45 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) |