aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-05-30 02:04:53 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-05-30 00:04:53 +0000
commit7baeea85a40071b5caf7e4e003d17c5841df7d2f (patch)
treed84f85674e46672cfc78aff597017ee46b2ad73c
parent72b0a7bbad2c82c1deff5da731490a0483f3b1f7 (diff)
downloadgcc-7baeea85a40071b5caf7e4e003d17c5841df7d2f.zip
gcc-7baeea85a40071b5caf7e4e003d17c5841df7d2f.tar.gz
gcc-7baeea85a40071b5caf7e4e003d17c5841df7d2f.tar.bz2
* cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
From-SVN: r160040
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cgraph.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3f1a7e3..bf55665 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-29 Jan Hubicka <jh@suse.cz>
+
+ * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
+
2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/44165
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 229f8a3..8c79168 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -1659,7 +1659,8 @@ cgraph_mark_reachable_node (struct cgraph_node *node)
/* Verify that function does not appear to be needed out of blue
during the optimization process. This can happen for extern
inlines when bodies was removed after inlining. */
- gcc_assert ((node->analyzed || DECL_EXTERNAL (node->decl)));
+ gcc_assert ((node->analyzed || node->in_other_partition
+ || DECL_EXTERNAL (node->decl)));
}
else
notice_global_symbol (node->decl);