diff options
| author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-27 15:42:48 +0000 |
|---|---|---|
| committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-27 15:42:48 +0000 |
| commit | 0212e4a6e4e36bbf46534a954bf336a502b62e94 (patch) | |
| tree | fd1d926b8ed10e380d7e1df6263f5e863138f1f4 | |
| parent | f8b55ff8ca2b25f0eb721f6dceab60d134054bf7 (diff) | |
| download | ppe42-gcc-0212e4a6e4e36bbf46534a954bf336a502b62e94.tar.gz ppe42-gcc-0212e4a6e4e36bbf46534a954bf336a502b62e94.zip | |
* cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
of known_decls.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68573 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cgraph.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ef1db4194a8..01bb8feb87d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 0f34373128d..ffc33123028 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -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 = |

