diff options
author | Benjamin Chelf <chelf@cabriolet.stanford.edu> | 2000-06-14 17:26:18 +0000 |
---|---|---|
committer | Benjamin Chelf <chelf@cabriolet.stanford.edu> | 2000-06-14 17:26:18 +0000 |
commit | fedac22763904842ffe947c34db06e2ea4b3f1f3 (patch) | |
tree | cc6aded9e99d8b7f38b907e70dbe50a75684a020 /gcc/cp/cp-tree.def | |
parent | 9f4ae1986374d0366e08c7b4ffcf654a73623e16 (diff) |
* c-common.h (IF_COND): Moved here from cp/cp-tree.h.
(THEN_CLAUSE): Likewise.
(ELSE_CLAUSE): Likewise.
(WHILE_COND): Likewise.
(WHILE_BODY): Likewise.
(DO_COND): Likewise.
(DO_BODY): Likewise.
(RETURN_EXPR): Likewise.
(EXPR_STMT_EXPR): Likewise.
(FOR_INIT_STMT): Likewise.
(FOR_COND): Likewise.
(FOR_EXPR): Likewise.
(FOR_BODY): Likewise.
(SWITCH_COND): Likewise.
(SWITCH_BODY): Likewise.
(CASE_LOW): Likewise.
(CASE_HIGH): Likewise.
(GOTO_DESTINATION): Likewise.
(COMPOUND_BODY): Likewise.
(ASM_CV_QUAL): Likewise.
(ASM_STRING): Likewise.
(ASM_OUTPUTS): Likewise.
(ASM_INPUTS): Likewise.
(ASM_CLOBBERS): Likewise.
(DECL_STMT_DECL): Likewise.
(STMT_EXPR_STMT): Likewise.
(LABEL_STMT_LABEL): Likewise.
(SCOPE_BEGIN_P): Likewise.
(SCOPE_END_P): Likewise.
(SCOPE_STMT_BLOCK): Likewise.
(SCOPE_NULLIFIED_P): Likewise.
(SCOPE_NO_CLEANUPS_P): Likewise.
(SCOPE_PARTIAL_P): Likewise.
(ASM_VOLATILE_P): Likewise.
(STMT_LINENO): Likewise.
(STMT_LINENO_FOR_FN_P): Likewise.
* c-common.def: Added SRCLOC, SIZEOF_EXPR, ARROW_EXPR,
ALIGNOF_EXPR, EXPR_STMT, COMPOUND_STMT, DECL_STMT, IF_STMT,
FOR_STMT, WHILE_STMT, DO_STMT, RETURN_STMT, BREAK_STMT,
CONTINUE_STMT, SWITCH_STMT, GOTO_STMT, LABEL_STMT, ASM_STMT,
SCOPE_STMT, CASE_LABEL, STMT_EXPR.
* gencheck.c (tree_codes[]): Added '#include "c-common.def"'.
* cp/cp-tree.h (IF_COND): Move to c-common.h.
(THEN_CLAUSE): Likewise.
(ELSE_CLAUSE): Likewise.
(WHILE_COND): Likewise.
(WHILE_BODY): Likewise.
(DO_COND): Likewise.
(DO_BODY): Likewise.
(RETURN_EXPR): Likewise.
(EXPR_STMT_EXPR): Likewise.
(FOR_INIT_STMT): Likewise.
(FOR_COND): Likewise.
(FOR_EXPR): Likewise.
(FOR_BODY): Likewise.
(SWITCH_COND): Likewise.
(SWITCH_BODY): Likewise.
(CASE_LOW): Likewise.
(CASE_HIGH): Likewise.
(GOTO_DESTINATION): Likewise.
(COMPOUND_BODY): Likewise.
(ASM_CV_QUAL): Likewise.
(ASM_STRING): Likewise.
(ASM_OUTPUTS): Likewise.
(ASM_INPUTS): Likewise.
(ASM_CLOBBERS): Likewise.
(DECL_STMT_DECL): Likewise.
(STMT_EXPR_STMT): Likewise.
(LABEL_STMT_LABEL): Likewise.
(SCOPE_BEGIN_P): Likewise.
(SCOPE_END_P): Likewise.
(SCOPE_STMT_BLOCK): Likewise.
(SCOPE_NULLIFIED_P): Likewise.
(SCOPE_NO_CLEANUPS_P): Likewise.
(SCOPE_PARTIAL_P): Likewise.
(ASM_VOLATILE_P): Likewise.
(STMT_LINENO): Likewise.
(STMT_LINENO_FOR_FN_P): Likewise.
* cp/cp-tree.def: Removed SRCLOC, SIZEOF_EXPR, ARROW_EXPR,
ALIGNOF_EXPR, EXPR_STMT, COMPOUND_STMT, DECL_STMT, IF_STMT,
FOR_STMT, WHILE_STMT, DO_STMT, RETURN_STMT, BREAK_STMT,
CONTINUE_STMT, SWITCH_STMT, GOTO_STMT, LABEL_STMT, ASM_STMT,
SCOPE_STMT, CASE_LABEL, STMT_EXPR.
* cp/Makefile.in (CXX_TREE_H): Added $(srcdir)/../c-common.def.
* cp/Make-lang.in (CXX_SRCS): Added $(srcdir)/c-common.def.
(cc1plus$(exeext)): Added $(srcdir)/c-common.def.
* cp/lex.c (cplus_tree_code_type[]): Added '#include "c-common.def"'.
(cplus_tree_code_length[]): Added '#include "c-common.def"'.
(cplus_tree_code_name[]): Added '#include "c-common.def"'.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@34552 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/cp-tree.def')
-rw-r--r-- | gcc/cp/cp-tree.def | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/gcc/cp/cp-tree.def b/gcc/cp/cp-tree.def index ead42bef0d1..6cc3af61123 100644 --- a/gcc/cp/cp-tree.def +++ b/gcc/cp/cp-tree.def @@ -185,9 +185,6 @@ DEFTREECODE (OVERLOAD, "overload", 'x', 1) tree structure. */ DEFTREECODE (WRAPPER, "wrapper", 'x', 1) -/* A node to remember a source position. */ -DEFTREECODE (SRCLOC, "srcloc", 'x', 2) - /* Used to represent deferred name lookup for dependent names while parsing a template declaration. The first argument is an IDENTIFIER_NODE for the name in question. The TREE_TYPE is @@ -205,27 +202,10 @@ DEFTREECODE (REINTERPRET_CAST_EXPR, "reinterpret_cast_expr", '1', 1) DEFTREECODE (CONST_CAST_EXPR, "const_cast_expr", '1', 1) DEFTREECODE (STATIC_CAST_EXPR, "static_cast_expr", '1', 1) DEFTREECODE (DYNAMIC_CAST_EXPR, "dynamic_cast_expr", '1', 1) -DEFTREECODE (SIZEOF_EXPR, "sizeof_expr", '1', 1) -DEFTREECODE (ALIGNOF_EXPR, "alignof_expr", '1', 1) -DEFTREECODE (ARROW_EXPR, "arrow_expr", 'e', 1) DEFTREECODE (DOTSTAR_EXPR, "dotstar_expr", 'e', 2) DEFTREECODE (TYPEID_EXPR, "typeid_expr", 'e', 1) DEFTREECODE (PSEUDO_DTOR_EXPR, "pseudo_dtor_expr", 'e', 3) -DEFTREECODE (EXPR_STMT, "expr_stmt", 'e', 1) -DEFTREECODE (COMPOUND_STMT, "compound_stmt", 'e', 1) -DEFTREECODE (DECL_STMT, "decl_stmt", 'e', 1) -DEFTREECODE (IF_STMT, "if_stmt", 'e', 3) -DEFTREECODE (FOR_STMT, "for_stmt", 'e', 4) -DEFTREECODE (WHILE_STMT, "while_stmt", 'e', 2) -DEFTREECODE (DO_STMT, "do_stmt", 'e', 2) -DEFTREECODE (RETURN_STMT, "return_stmt", 'e', 1) -DEFTREECODE (BREAK_STMT, "break_stmt", 'e', 0) -DEFTREECODE (CONTINUE_STMT, "continue_stmt", 'e', 0) -DEFTREECODE (SWITCH_STMT, "switch_stmt", 'e', 2) -DEFTREECODE (GOTO_STMT, "goto_stmt", 'e', 1) -DEFTREECODE (LABEL_STMT, "label_stmt", 'e', 1) -DEFTREECODE (ASM_STMT, "asm_stmt", 'e', 5) /* A SUBOBJECT statement marks the point at which a sub-object is fully constructed. After this point, the SUBOBJECT_CLEANUP must be run if an exception is thrown before the end of the enclosing @@ -244,23 +224,11 @@ DEFTREECODE (CLEANUP_STMT, "cleanup_stmt", 'e', 2) the START_CATCH_TYPE. If this is CATCH_ALL_TYPE, then the handler catches all types. */ DEFTREECODE (START_CATCH_STMT, "start_catch_stmt", 'e', 0) -/* A SCOPE_STMT marks the beginning or end of a scope. If - SCOPE_BEGIN_P holds, then this is the start of a scope. If - SCOPE_END_P holds, then this is the end of a scope. If - SCOPE_NULLIFIED_P holds then there turned out to be no variables in - this scope. The SCOPE_STMT_BLOCK is the BLOCK containing the - variables declared in this scope. */ -DEFTREECODE (SCOPE_STMT, "scope_stmt", 'e', 1) DEFTREECODE (CTOR_INITIALIZER, "ctor_initializer", 'e', 2) -DEFTREECODE (CASE_LABEL, "case_label", 'e', 2) DEFTREECODE (RETURN_INIT, "return_init", 'e', 2) DEFTREECODE (TRY_BLOCK, "try_block", 'e', 2) DEFTREECODE (HANDLER, "handler", 'e', 2) -/* A STMT_EXPR represents a statement-expression. The - STMT_EXPR_STMT is the statement given by the expression. */ -DEFTREECODE (STMT_EXPR, "stmt_expr", 'e', 1) - DEFTREECODE (TAG_DEFN, "tag_defn", 'e', 0) /* And some codes for expressing conversions for overload resolution. */ |