aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2004-09-08 09:28:06 +0000
committerJan Hubicka <jh@suse.cz>2004-09-08 09:28:06 +0000
commit9e018c26f636a25eb51698b63ac522362037b1e2 (patch)
tree29b2c1082d2d4dda08ca1f0a6b2e0aa510db37c2 /gcc/cgraph.c
parent2195c1c277bea6e1a25435d9de19959213f3f5c4 (diff)
* cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
* cgraphunit.c (verify_cgraph): Don't verify on syntax errors. (cgraph_expand_function): Remove stale cgraph edges of currently compiled function; fix non-unit-at-a-time code copying function node for later reuse. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@87181 138bc75d-0d04-0410-961f-82ee72b054a4
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 a2cb174d767..6c93ac5f173 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -354,6 +354,7 @@ cgraph_remove_node (struct cgraph_node *node)
{
DECL_SAVED_TREE (node->decl) = NULL;
DECL_STRUCT_FUNCTION (node->decl) = NULL;
+ DECL_INITIAL (node->decl) = error_mark_node;
}
}
cgraph_n_nodes--;