From: Jan Hubicka Date: Fri, 12 Dec 2014 09:05:56 +0000 (+0100) Subject: ipa-inline.c (ipa_inline): Fix condition on when TODO_remove_unreachable_functions... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f019b6072dfecc4e856ad8379050f542c1ea2b42;p=gcc.git ipa-inline.c (ipa_inline): Fix condition on when TODO_remove_unreachable_functions is needed. * ipa-inline.c (ipa_inline): Fix condition on when TODO_remove_unreachable_functions is needed. From-SVN: r218660 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 74e3ddc2a3c..a1cdd712373 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-12-12 Jan Hubicka + + * ipa-inline.c (ipa_inline): Fix condition on when + TODO_remove_unreachable_functions is needed. + 2014-12-12 Jan Hubicka * ipa-devirt.c (possible_polymorphic_call_targets): Return early diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 8954e493533..451695f0a80 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -2254,8 +2254,7 @@ ipa_inline (void) while (node->call_for_symbol_thunks_and_aliases (inline_to_all_callers, &num_calls, true)) ; - if (num_calls) - remove_functions = true; + remove_functions = true; } } }