diff options
author | Mark Mitchell <mark@codesourcery.com> | 2001-01-04 19:01:22 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2001-01-04 19:01:22 +0000 |
commit | 3af4c2573f24b5aeab974c75c47480ed40553e0a (patch) | |
tree | 43183e5b0e43cb60aef06b6903b258cfc588f7f5 | |
parent | a41d085545706c581e48cdc9c7f3bdba8310c25b (diff) | |
download | gcc-3af4c2573f24b5aeab974c75c47480ed40553e0a.zip gcc-3af4c2573f24b5aeab974c75c47480ed40553e0a.tar.gz gcc-3af4c2573f24b5aeab974c75c47480ed40553e0a.tar.bz2 |
tree.c (copy_node): Remove documentation about obstacks.
* tree.c (copy_node): Remove documentation about obstacks.
(buidl1): Check that nobody tries to build 2-argument nodes this
way.
* call.c (build_conv): Don't use build1 for USER_CONV.
* pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
From-SVN: r38686
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree.c | 12 |
3 files changed, 19 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6d5ce8b..c6992fc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-01-04 Mark Mitchell <mark@codesourcery.com> + + * tree.c (copy_node): Remove documentation about obstacks. + (buidl1): Check that nobody tries to build 2-argument nodes this + way. + 2001-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * sparc.h (PREDICATE_CODES): Delete fp_sethi_p, fp_mov_p and diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7404a1a..e86de61 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2001-01-04 Mark Mitchell <mark@codesourcery.com> + + * call.c (build_conv): Don't use build1 for USER_CONV. + * pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes. + 2001-01-03 Joseph S. Myers <jsm28@cam.ac.uk> * lex.c (lang_init): Call c_common_lang_init. @@ -469,10 +469,7 @@ make_lang_type (code) } /* Return a new node with the same contents as NODE except that its - TREE_CHAIN is zero and it has a fresh uid. Unlike make_node, this - function always performs the allocation on the CURRENT_OBSTACK; - it's up to the caller to pick the right obstack before calling this - function. */ + TREE_CHAIN is zero and it has a fresh uid. */ tree copy_node (node) @@ -2424,6 +2421,13 @@ build1 (code, type, node) kind = e_kind; #endif +#ifdef ENABLE_CHECKING + if (TREE_CODE_CLASS (code) == '2' + || TREE_CODE_CLASS (code) == '<' + || TREE_CODE_LENGTH (code) != 1) + abort (); +#endif /* ENABLE_CHECKING */ + length = sizeof (struct tree_exp); t = ggc_alloc_tree (length); |