diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-18 14:57:10 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-18 14:57:10 +0000 |
commit | 09b58383a159c9bb4e47f7c44fbc2895bc9a3130 (patch) | |
tree | 437a96bf5c4ffbdcea6395eb75991df4b2b70ed1 /gcc/cgraph.c | |
parent | bbc1dc3ccefaa61da73efaffdcda85af50dc76a5 (diff) | |
download | gcc-09b58383a159c9bb4e47f7c44fbc2895bc9a3130.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96685 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index dacc70dfb30..c7475c18eb3 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; |