ipa-visibility.c (function_and_variable_visibility): Only check locality if node...
authorJan Hubicka <hubicka@ucw.cz>
Tue, 17 Feb 2015 20:58:43 +0000 (21:58 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 17 Feb 2015 20:58:43 +0000 (20:58 +0000)
commit1379ce8fafed69709dc33fb6dadf26711bdca913
tree41b38cdc46774f415c0893e2e93077b85689fe92
parenta2818955d7a57e099a02eb7291cfc13bf35c4fa9
ipa-visibility.c (function_and_variable_visibility): Only check locality if node is not already local.

* ipa-visibility.c (function_and_variable_visibility): Only
check locality if node is not already local.
* ipa-inline.c (want_inline_function_to_all_callers_p): Use
call_for_symbol_and_aliases instead of
call_for_symbol_thunks_and_aliases.
(ipa_inline): Likewise.
* cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
first walk aliases.
* ipa.c (symbol_table::remove_unreachable_nodes): Use
call_for_symbol_and_aliases.
* ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
(ipa_propagate_frequency_1): Use it; use opt_for_fn
(ipa_propagate_frequency): Update.
(ipa_profile): Add opt_for_fn guards.

From-SVN: r220771
gcc/ChangeLog
gcc/ipa-visibility.c