summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-split.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7122413fc0e..34598e15b18 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,6 +1,11 @@
2015-02-08 Jan Hubicka <hubicka@ucw.cz>
PR ipa/63566
+ * ipa-split.c (execute_split_functions): Split if function has aliases.
+
+2015-02-08 Jan Hubicka <hubicka@ucw.cz>
+
+ PR ipa/63566
* cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
aliases before trying to expand it.
(cgraph_node::expand_thunk): Fix formating.
diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c
index 7e2e3007197..7e68a876076 100644
--- a/gcc/ipa-split.c
+++ b/gcc/ipa-split.c
@@ -1736,6 +1736,7 @@ execute_split_functions (void)
/* Local functions called once will be completely inlined most of time. */
|| (!node->callers->next_caller && node->local.local))
&& !node->address_taken
+ && !node->has_aliases_p ()
&& (!flag_lto || !node->externally_visible))
{
if (dump_file)