summaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-19 09:43:53 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-19 09:43:53 +0000
commitbc5cab3be0459fd8fa4a8890dfa57591f35979ff (patch)
tree248adc79dc4e8a0017745b4c303cb2506b6ee0b5 /gcc/cgraph.c
parent4391eaa1bec189d2c882bd81479ca2a7e8d4df23 (diff)
downloadgcc-bc5cab3be0459fd8fa4a8890dfa57591f35979ff.tar.gz
* cgraph.c (cgraph_remove_node): Fix removal from linked list.
* cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed list. (cgraph_remove_unreachable_nodes): New function (cgraph_decide_inlining_of_small_function): Fix pasto. (cgraph_decide_inlining_incrementally): Fix pasto. (cgrpah_decide_inlining): Likewise; remove unreachable nodes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76142 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index ec3bcca34e7..57d0844beae 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -231,7 +231,7 @@ cgraph_remove_node (struct cgraph_node *node)
if (node->previous)
node->previous->next = node->next;
else
- cgraph_nodes = node;
+ cgraph_nodes = node->next;
if (node->next)
node->next->previous = node->previous;
DECL_SAVED_TREE (node->decl) = NULL;