aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2013-08-02 11:44:18 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2013-08-02 09:44:18 +0000
commit0dcc26c3112f1c8e024c17b245d0519642fb65da (patch)
treeeca584ec19105013c4dcd283dd8fc7c14538089b /gcc
parent257e6ab3df37d92d933a404ec0a5a02f39141aa3 (diff)
downloadgcc-0dcc26c3112f1c8e024c17b245d0519642fb65da.zip
gcc-0dcc26c3112f1c8e024c17b245d0519642fb65da.tar.gz
gcc-0dcc26c3112f1c8e024c17b245d0519642fb65da.tar.bz2
ipa.c (symtab_remove_unreachable_nodes): Nodes in other partitions are not needed.
* ipa.c (symtab_remove_unreachable_nodes): Nodes in other partitions are not needed. From-SVN: r201431
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5dfbc6f..7ec0d31 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-01 Jan Hubicka <jh@suse.cz>
+
+ * ipa.c (symtab_remove_unreachable_nodes): Nodes in other partitions are
+ not needed.
+
2013-08-01 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
diff --git a/gcc/ipa.c b/gcc/ipa.c
index 243bf20..085454d 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -239,6 +239,7 @@ symtab_remove_unreachable_nodes (bool before_inlining_p, FILE *file)
node->used_as_abstract_origin = false;
if (node->symbol.definition
&& !node->global.inlined_to
+ && !node->symbol.in_other_partition
&& (!cgraph_can_remove_if_no_direct_calls_and_refs_p (node)
/* Keep around virtual functions for possible devirtualization. */
|| (before_inlining_p