aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2015-02-17 21:58:43 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2015-02-17 20:58:43 +0000
commit1379ce8fafed69709dc33fb6dadf26711bdca913 (patch)
tree41b38cdc46774f415c0893e2e93077b85689fe92 /gcc
parenta2818955d7a57e099a02eb7291cfc13bf35c4fa9 (diff)
downloadgcc-1379ce8fafed69709dc33fb6dadf26711bdca913.zip
gcc-1379ce8fafed69709dc33fb6dadf26711bdca913.tar.gz
gcc-1379ce8fafed69709dc33fb6dadf26711bdca913.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog17
-rw-r--r--gcc/ipa-visibility.c3
2 files changed, 19 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e52e7cf..9c0672b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,20 @@
+2015-02-17 Jan Hubicka <hubicka@ucw.cz>
+
+ * 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.
+
2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
* config/nvptx/mkoffload.c (parse_file): Fix logic error in
diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c
index c33ee46..9247e29 100644
--- a/gcc/ipa-visibility.c
+++ b/gcc/ipa-visibility.c
@@ -595,7 +595,8 @@ function_and_variable_visibility (bool whole_program)
}
FOR_EACH_DEFINED_FUNCTION (node)
{
- node->local.local |= node->local_p ();
+ if (!node->local.local)
+ node->local.local |= node->local_p ();
/* If we know that function can not be overwritten by a different semantics
and moreover its section can not be discarded, replace all direct calls