diff options
author | Ian Lance Taylor <ian@airs.com> | 2005-04-25 19:03:41 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2005-04-25 19:03:41 +0000 |
commit | 934790cc6719ae6f0d6a7f408cedba1acab9f93d (patch) | |
tree | 04c6f7b2baf3f9d03ae1167e9d3db012d53a4e00 /gcc/c-common.def | |
parent | eca5a6a939732c946f3ade566ae1dd4f3def37c3 (diff) | |
download | gcc-934790cc6719ae6f0d6a7f408cedba1acab9f93d.zip gcc-934790cc6719ae6f0d6a7f408cedba1acab9f93d.tar.gz gcc-934790cc6719ae6f0d6a7f408cedba1acab9f93d.tar.bz2 |
c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
./ * c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
* c-common.h (EXPR_STMT_EXPR): Don't define.
(c_common_stmt_codes): Don't define.
* c-dump.c (c_dump_tree): Remove EXPR_STMT case.
* c-gimplify.c (gimplify_expr_stmt): Remove.
(c_gimplify_expr): Remove EXPR_STMT case.
* c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
to INIT_STATEMENT_CODES.
* c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
cp/
* cp-tree.def: Add EXPR_STMT.
* cp-tree.h (cp_stmt_codes): Add EXPR_STMT.
(EXPR_STMT_EXPR): Define.
* cp-gimplify.c: Include "flags.h".
(gimplify_expr_stmt): New static function.
(cp_gimplify_expr): Handle EXPR_STMT.
* cxx-pretty-print.c (pp_cxx_statement): Use pp_cxx_expression
rather than pp_expression.
(pp_cxx_statement): Handle EXPR_STMT.
* dump.c (cp_dump_tree): Handle EXPR_STMT.
* lex.c (cxx_init): Don't use c_common_stmt_codes in stmt_codes
initializer.
From-SVN: r98731
Diffstat (limited to 'gcc/c-common.def')
-rw-r--r-- | gcc/c-common.def | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/c-common.def b/gcc/c-common.def index 4f34a70..bd62694 100644 --- a/gcc/c-common.def +++ b/gcc/c-common.def @@ -1,5 +1,5 @@ /* This file contains the definitions and documentation for the - additional tree codes used in the GNU C++ compiler (see tree.def + additional tree codes used in the GNU C compiler (see tree.def for the standard codes). Copyright (C) 1987, 1988, 1990, 1993, 1997, 1998, 1999, 2000, 2001, 2004, 2005 Free Software Foundation, Inc. @@ -22,12 +22,8 @@ along with GCC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* Tree nodes relevant to both C and C++. These were originally in -cp-tree.def in the cp subdir. */ - -/* Used to represent an expression statement. Use `EXPR_STMT_EXPR' to - obtain the expression. */ -DEFTREECODE (EXPR_STMT, "expr_stmt", tcc_expression, 1) +/* Tree nodes used in the C frontend. These are also shared with the + C++ and Objective C frontends. */ /* A COMPOUND_LITERAL_EXPR represents a C99 compound literal. The COMPOUND_LITERAL_EXPR_DECL_STMT is the a DECL_STMT containing the decl |