diff options
author | Jeffrey A Law <law@cygnus.com> | 1998-07-14 19:11:25 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-07-14 13:11:25 -0600 |
commit | 2c43b71ae591716613d94d074132e9c9f3642c2d (patch) | |
tree | 515d98592c6bc24ae718f36e666d2cdca507492f /gcc/cp | |
parent | 00025aeabbc6aabf4bc62f46f0de757533f5bb6f (diff) | |
download | gcc-2c43b71ae591716613d94d074132e9c9f3642c2d.zip gcc-2c43b71ae591716613d94d074132e9c9f3642c2d.tar.gz gcc-2c43b71ae591716613d94d074132e9c9f3642c2d.tar.bz2 |
* search.c (my_tree_cons): Clean up.
From-SVN: r21158
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/search.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5f27bf6..76ecb63 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +Tue Jul 14 20:09:22 1998 Jeffrey A Law (law@cygnus.com) + + * search.c (my_tree_cons): Clean up. + 1998-07-14 Jason Merrill <jason@yorick.cygnus.com> * call.c (joust): Don't warn about "confusing" conversions to the diff --git a/gcc/cp/search.c b/gcc/cp/search.c index b58c61f..ebd788a 100644 --- a/gcc/cp/search.c +++ b/gcc/cp/search.c @@ -261,12 +261,8 @@ my_tree_cons (purpose, value, chain) tree purpose, value, chain; { tree p = (tree)obstack_alloc (&type_obstack_entries, sizeof (struct tree_list)); + bzero ((char *)p, sizeof (struct tree_list)); ++my_tree_node_counter; - TREE_TYPE (p) = NULL_TREE; - /* The type of the last on the LHS of this statement must be a pointer - to the same type as the bitfields in struct tree_common. Otherwise - we may write beyond our intended area. */ - ((unsigned *)p)[2] = 0; TREE_SET_CODE (p, TREE_LIST); TREE_PURPOSE (p) = purpose; TREE_VALUE (p) = value; |