aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2001-01-29 18:57:24 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2001-01-29 18:57:24 +0000
commit718b8ea51f0736646f9cf8a9d5eb4305a12e835e (patch)
treeb48d73c0ebfe52de5ca1bb8398e3b4a0964d226a /gcc/tree.c
parentadc881318b71864ad27821825c7cb9dce3c30aa2 (diff)
downloadgcc-718b8ea51f0736646f9cf8a9d5eb4305a12e835e.zip
gcc-718b8ea51f0736646f9cf8a9d5eb4305a12e835e.tar.gz
gcc-718b8ea51f0736646f9cf8a9d5eb4305a12e835e.tar.bz2
tree.c, tree.h (build_parse_node): Remove; was identical to build_nt.
* tree.c, tree.h (build_parse_node): Remove; was identical to build_nt. * c-lang.c (start_cdtor), objc/objc-act.c (build_module_descriptor): Use build_nt instead of build_parse_node. cp: * decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator, make_reference_declarator, make_call_declarator), method.c (implicitly_declare_fn), parse.y (namespace_using_decl, notype_unqualified_id, expr_or_declarator, new_type_id, after_type_declarator, direct_after_type_declarator, notype_declarator, complex_notype_declarator, complex_direct_notype_declarator, qualified_id, notype_qualified_id, overqualified_id, direct_new_declarator, absdcl, direct_abstract_declarator, conversion_declarator), pt.c (tsubst), semantics.c (begin_constructor_declarator): Use build_nt instead of build_parse_node. From-SVN: r39332
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 9f7fae7..6e8a32e 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -2504,36 +2504,6 @@ build_nt VPARAMS ((enum tree_code code, ...))
return t;
}
-/* Similar to `build_nt', except we build
- on the temp_decl_obstack, regardless. */
-
-tree
-build_parse_node VPARAMS ((enum tree_code code, ...))
-{
-#ifndef ANSI_PROTOTYPES
- enum tree_code code;
-#endif
- va_list p;
- register tree t;
- register int length;
- register int i;
-
- VA_START (p, code);
-
-#ifndef ANSI_PROTOTYPES
- code = va_arg (p, enum tree_code);
-#endif
-
- t = make_node (code);
- length = TREE_CODE_LENGTH (code);
-
- for (i = 0; i < length; i++)
- TREE_OPERAND (t, i) = va_arg (p, tree);
-
- va_end (p);
- return t;
-}
-
#if 0
/* Commented out because this wants to be done very
differently. See cp-lex.c. */