ipa-inline.c (ipa_inline): Fix condition on when TODO_remove_unreachable_functions...
authorJan Hubicka <hubicka@ucw.cz>
Fri, 12 Dec 2014 09:05:56 +0000 (10:05 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 12 Dec 2014 09:05:56 +0000 (09:05 +0000)
* ipa-inline.c (ipa_inline): Fix condition on when
TODO_remove_unreachable_functions is needed.

From-SVN: r218660

gcc/ChangeLog
gcc/ipa-inline.c

index 74e3ddc2a3cb941b5bd5d89e2d05efd25bd38452..a1cdd712373fbbd5f85090066cb0e5baa121ce6d 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-12  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-inline.c (ipa_inline): Fix condition on when
+       TODO_remove_unreachable_functions is needed.
+
 2014-12-12  Jan Hubicka  <hubicka@ucw.cz>
 
        * ipa-devirt.c (possible_polymorphic_call_targets): Return early
index 8954e49353392613dc9e9dd791ba514a7199b0bf..451695f0a80a21621e358b6cc0b4691e688eeac0 100644 (file)
@@ -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;
            }
        }
     }