cgraph.c (cgraph_node, [...]): Avoid re-initializing of known_decls.

* cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
	of known_decls.

From-SVN: r68573
This commit is contained in:
Jan Hubicka
2003-06-27 17:42:48 +02:00
committed by Jan Hubicka
parent c938cb682b
commit 67f2899de2
2 changed files with 9 additions and 2 deletions
+5
View File
@@ -1,3 +1,8 @@
Fri Jun 27 17:41:16 CEST 2003 Jan Hubicka <jh@suse.cz>
* cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
of known_decls.
2003-06-27 Hans-Peter Nilsson <hp@axis.com>
* defaults.h (REGISTER_MOVE_COST): Define default here.
+4 -2
View File
@@ -108,7 +108,8 @@ cgraph_node (decl)
if (!cgraph_hash)
{
cgraph_hash = htab_create (10, hash_node, eq_node, NULL);
VARRAY_TREE_INIT (known_decls, 32, "known_decls");
if (!known_decls)
VARRAY_TREE_INIT (known_decls, 32, "known_decls");
}
slot =
@@ -394,7 +395,8 @@ cgraph_varpool_node (tree decl)
if (!cgraph_varpool_hash)
{
cgraph_varpool_hash = htab_create (10, cgraph_varpool_hash_node, eq_cgraph_varpool_node, NULL);
VARRAY_TREE_INIT (known_decls, 32, "known_decls");
if (!known_decls)
VARRAY_TREE_INIT (known_decls, 32, "known_decls");
}
slot =