aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2005-03-18 15:57:10 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2005-03-18 14:57:10 +0000
commit45676d2b6ca5a09e21e51a0527c3381fcb161cde (patch)
tree437a96bf5c4ffbdcea6395eb75991df4b2b70ed1 /gcc/cgraph.c
parent625da0db0f79c2d754857d772bb59aba0a3ea1cb (diff)
downloadgcc-45676d2b6ca5a09e21e51a0527c3381fcb161cde.zip
gcc-45676d2b6ca5a09e21e51a0527c3381fcb161cde.tar.gz
gcc-45676d2b6ca5a09e21e51a0527c3381fcb161cde.tar.bz2
re PR middle-end/20225 (ICE during GC)
PR middle-end/20225 * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called too late. * varasm.c (find_decl_and_mark_needed): Mark needed only when not called too late. From-SVN: r96685
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index dacc70d..c7475c1 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -469,6 +469,7 @@ cgraph_mark_reachable_node (struct cgraph_node *node)
{
notice_global_symbol (node->decl);
node->reachable = 1;
+ gcc_assert (!cgraph_global_info_ready);
node->next_needed = cgraph_nodes_queue;
cgraph_nodes_queue = node;