diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb6c0510535..92b355a73df 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-11-24 Jan Hubicka + + PR bootstrap/83015 + * ipa-inline.c (inline_small_functions): Set current badnes correctly + when skipping checking. + 2017-11-24 Richard Biener PR tree-optimization/83128 diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index c535a9ab7d6..8f12aa16687 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1865,6 +1865,8 @@ inline_small_functions (void) gcc_assert (cached_badness == current_badness); gcc_assert (current_badness >= badness); } + else + current_badness = edge_badness (edge, false); #else current_badness = edge_badness (edge, false); #endif