aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2004-01-19 10:43:53 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2004-01-19 09:43:53 +0000
commit9b0436b73976e82f93cd391812fb7ed802798830 (patch)
tree248adc79dc4e8a0017745b4c303cb2506b6ee0b5 /gcc/cgraph.c
parent954b12d2dc0c85814de90bbe9e01869ded7bba1a (diff)
downloadgcc-9b0436b73976e82f93cd391812fb7ed802798830.zip
gcc-9b0436b73976e82f93cd391812fb7ed802798830.tar.gz
gcc-9b0436b73976e82f93cd391812fb7ed802798830.tar.bz2
cgraph.c (cgraph_remove_node): Fix removal from linked list.
* 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. From-SVN: r76142
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 ec3bcca..57d0844 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;