diff options
author | Mark Mitchell <mark@codesourcery.com> | 1999-09-08 20:12:35 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-09-08 20:12:35 +0000 |
commit | 2a1e9fdd031c5fcdc35b78d4bb6b9800cb82eafc (patch) | |
tree | adf9be1d936c0ca1288a7994361c1272e150dc7e /gcc/cp/init.c | |
parent | ce3700e3ba57f07a44a2edc9d8b146a7682bb54e (diff) | |
download | gcc-2a1e9fdd031c5fcdc35b78d4bb6b9800cb82eafc.zip gcc-2a1e9fdd031c5fcdc35b78d4bb6b9800cb82eafc.tar.gz gcc-2a1e9fdd031c5fcdc35b78d4bb6b9800cb82eafc.tar.bz2 |
cp-tree.h (copy_to_permanent): Remove.
* cp-tree.h (copy_to_permanent): Remove.
(permanent_p): Likewise.
* decl.c (building_typename_type): Don't use copy_to_permanent.
(start_decl): Likewise.
(grok_reference_init): Likewise.
(cp_finish_decl): Likewise.
* init.c (build_new_1): Don't use mapcar.
(build_vec_delete_1): Don't use copy_to_permanent.
(build_vec_init): Likewise.
* parse.y (primary): Likewise.
* parse.c: Regenerated.
* pt.c (push_template_decl_real): Don't use copy_to_permanent.
(lookup_template_class): Likewise.
(tsubst_friend_function): Likewise.
(instantiate_class_template): Likewise.
(tsubst_decl): Likewise.
(tsubst): Likewise.
(instantiate_template): Likewise.
(unify): Likewise.
* rtti.c (get_tinfo_fn): Likewise.
(build_dynamic_cast): Likewise.
* semantics.c (finish_if_stmt_cond): Likewise.
(finish_while_stmt_cond): Likewise.
(finish_do_stmt): Likewise.
(finish_for_cond): Likewise.
(finish_for_expr): Likewise.
(finish_cleanup): Likewise.
(add_decl_stmt): Likewise.
(finish_named_return_value): Likewise.
(finish_qualified_call_expr): Likewise.
* tree.c (perm_manip): Remove.
(build_exception_variant): Don't use copy_to_permanent.
(permanent_p): Remove.
(copy_to_permament): Remove.
(build_min_nt): Don't use copy_to_permanent.
(build_min): Likewise.
(min_tree_cons): Likewise.
* typeckc.c (build_static_cast): Likewise.
(build_reinterpret_cast): Likewise.
(build_const_cast): Likewise.
From-SVN: r29211
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r-- | gcc/cp/init.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c index b49dda3..a550a72 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -2444,9 +2444,6 @@ build_new_1 (exp) fn = TREE_OPERAND (alloc_expr, 1); fn = TREE_OPERAND (fn, 0); - /* Copy size to the saveable obstack. */ - size = mapcar (size, permanent_p); - cleanup = build_op_delete_call (dcode, alloc_node, size, flags, fn); resume_momentary (yes); @@ -2654,15 +2651,6 @@ build_vec_delete_1 (base, maxindex, type, auto_delete_vec, auto_delete, if (controller) { - /* The CONTROLLER is a BIND_EXPR. Such things are always - allocated on at least the saveable obstack. Since we may - need to copy this expression to the permanent obstack, we - must make sure that the operand is on the same obstack as the - BIND_EXPR. Otherwise, copy_to_permanent will not copy the - operand, since it will assume that anything under a permanent - node is permanent. */ - if (TREE_PERMANENT (controller)) - body = copy_to_permanent (body); TREE_OPERAND (controller, 1) = body; return controller; } @@ -3010,9 +2998,6 @@ build_vec_init (decl, base, maxindex, init, from_array) on the temporary obstack. */ push_obstacks_nochange (); resume_temporary_allocation (); - /* And MAXINDEX needs to be copied to the current obstack. It's - probably on the momentary obstack now. */ - maxindex = mapcar (maxindex, permanent_p); e = build_vec_delete_1 (rval, build_binary_op (MINUS_EXPR, maxindex, iterator), |