aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/dump.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2002-03-15 20:08:39 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2002-03-15 20:08:39 +0000
commit6e4ae815bd9939ca44e61e28e5c27c347d9dae4f (patch)
treedb4a627f532c42df854f6b4b67e6005e3d470c92 /gcc/cp/dump.c
parent08bcc159d9e63cd48eb12895f027e5d84d2ccd65 (diff)
downloadgcc-6e4ae815bd9939ca44e61e28e5c27c347d9dae4f.zip
gcc-6e4ae815bd9939ca44e61e28e5c27c347d9dae4f.tar.gz
gcc-6e4ae815bd9939ca44e61e28e5c27c347d9dae4f.tar.bz2
c-common.c (statement_code_p): Handle CLEANUP_STMT.
* c-common.c (statement_code_p): Handle CLEANUP_STMT. * c-common.def (CLEANUP_STMT): New tree node. * c-common.h (CLEANUP_DECL): New macro. (CLEANUP_EXPR): Likewise. * c-semantics.c (expand_stmt): Handle CLEANUP_STMT. * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT. * tree-inline.c (initialize_inlined_parameters): Clean up new local variables. * cp-tree.h (CLEANUP_DECL): Remove. (CLEANUP_EXPR): Likewise. * decl.c (destroy_local_var): Simplify. (maybe_build_cleanup): Tidy. * dump.c (cp_dump_tree): Remove handling of CLEANUP_STMT. * semantics.c (cp_expand_stmt): Likewise. * cp/tree.c (cp_statement_code_p): Likewise. * g++.dg/opt/dtor1.C: New test. From-SVN: r50830
Diffstat (limited to 'gcc/cp/dump.c')
-rw-r--r--gcc/cp/dump.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c
index 98c1fc4..6dd60ba 100644
--- a/gcc/cp/dump.c
+++ b/gcc/cp/dump.c
@@ -1,5 +1,5 @@
/* Tree-dumping functionality for intermediate representation.
- Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
Written by Mark Mitchell <mark@codesourcery.com>
This file is part of GNU CC.
@@ -390,13 +390,6 @@ cp_dump_tree (dump_info, t)
dump_child ("decl", TREE_OPERAND (t, 2));
break;
- case CLEANUP_STMT:
- dump_stmt (di, t);
- dump_child ("decl", CLEANUP_DECL (t));
- dump_child ("expr", CLEANUP_EXPR (t));
- dump_next_stmt (di, t);
- break;
-
case CTOR_STMT:
dump_stmt (di, t);
if (CTOR_BEGIN_P (t))