From 42685f72ca64d15f0d4ae46efa1297cefdbbc846 Mon Sep 17 00:00:00 2001
From: Jan Hubicka <hubicka@ucw.cz>
Date: Sun, 8 Feb 2015 21:13:01 +0100
Subject: [PATCH] re PR ipa/63566 (i686 bootstrap fails: ICE RTL flag check:
 INSN_UID used with unexpected rtx code 'set' in INSN_UID, at rtl.h:1326)

	PR ipa/63566
	* ipa-split.c (execute_split_functions): Split if function has aliases.

From-SVN: r220519
---
 gcc/ChangeLog   | 5 +++++
 gcc/ipa-split.c | 1 +
 2 files changed, 6 insertions(+)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7122413fc0e6..34598e15b18d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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 
diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c
index 7e2e3007197c..7e68a8760764 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)
-- 
GitLab