diff options
author | Martin v. Löwis <loewis@informatik.hu-berlin.de> | 1998-08-23 22:05:51 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-08-23 22:05:51 -0400 |
commit | df44f2b0e98dccd15796b2e9af364c1704fba95e (patch) | |
tree | 2d2a281de6fdee69c6a7fa201240ebf9f2cec651 | |
parent | 319285566b1f3cca49a1188fc6825e794982caa9 (diff) | |
download | gcc-df44f2b0e98dccd15796b2e9af364c1704fba95e.zip gcc-df44f2b0e98dccd15796b2e9af364c1704fba95e.tar.gz gcc-df44f2b0e98dccd15796b2e9af364c1704fba95e.tar.bz2 |
* search.c (my_tree_cons): Reimplement.
From-SVN: r21927
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/search.c | 11 |
2 files changed, 8 insertions, 7 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 3e51108..1941f15 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -3,11 +3,13 @@ * lex.c (real_yylex): Don't warn about long long constants if we're allowing long long. -1998-08-23 Martin von Löwis <loewis@informatik.hu-berlin.de> +1998-08-24 Martin von Löwis <loewis@informatik.hu-berlin.de> * decl.c (pushdecl): Use IDENTIFIER_NAMESPACE_VALUE instead of accessing bindings directly. + * search.c (my_tree_cons): Reimplement. + * lang-specs.h: Remove __HONOR_STD. * inc/exception, inc/new, inc/new.h, inc/typeinfo: Likewise. diff --git a/gcc/cp/search.c b/gcc/cp/search.c index 79042e1..6367358 100644 --- a/gcc/cp/search.c +++ b/gcc/cp/search.c @@ -261,13 +261,12 @@ static tree 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)); + tree p; + struct obstack *ambient_obstack = current_obstack; + current_obstack = &type_obstack_entries; + p = tree_cons (purpose, value, chain); + current_obstack = ambient_obstack; ++my_tree_node_counter; - TREE_SET_CODE (p, TREE_LIST); - TREE_PURPOSE (p) = purpose; - TREE_VALUE (p) = value; - TREE_CHAIN (p) = chain; return p; } |