aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-tree.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2005-05-12 13:06:15 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2005-05-12 13:06:15 +0000
commitfeea5b18cc9fb53a22f9a57e941f45e75a8b0203 (patch)
tree4e17142256d0c3131e7b10149f5c50c1ea1b9850 /gcc/cp/cp-tree.h
parent5a8c20ce52bf512a5578b3eae578ecc7b86f8cb8 (diff)
downloadgcc-feea5b18cc9fb53a22f9a57e941f45e75a8b0203.zip
gcc-feea5b18cc9fb53a22f9a57e941f45e75a8b0203.tar.gz
gcc-feea5b18cc9fb53a22f9a57e941f45e75a8b0203.tar.bz2
c-common.h (statement_code_p): Don't declare.
./: * c-common.h (statement_code_p): Don't declare. (STATEMENT_CODE_P): Don't define. (INIT_STATEMENT_CODES): Don't define. * c-common.c (statement_code_p): Don't define. cp/: * cp-tree.h (cp_stmt_codes): Don't define. (statement_code_p): Declare. (STATEMENT_CODE_P): Define. * lex.c (statement_code_p): Define. (cxx_init): Use actual codes in stmt_codes initializer, not cp_stmt_codes macro. Initialize statement_code_p directly, rather than using INIT_STATEMENT_CODES. From-SVN: r99615
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r--gcc/cp/cp-tree.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index b5eab93..39d472b 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -843,12 +843,11 @@ enum cplus_tree_code {
};
#undef DEFTREECODE
-#define cp_stmt_codes \
- CTOR_INITIALIZER, TRY_BLOCK, HANDLER, \
- EH_SPEC_BLOCK, USING_STMT, TAG_DEFN, \
- IF_STMT, CLEANUP_STMT, FOR_STMT, \
- WHILE_STMT, DO_STMT, BREAK_STMT, \
- CONTINUE_STMT, SWITCH_STMT, EXPR_STMT
+/* TRUE if a tree code represents a statement. */
+extern bool statement_code_p[MAX_TREE_CODES];
+
+#define STATEMENT_CODE_P(CODE) statement_code_p[(int) (CODE)]
+
enum languages { lang_c, lang_cplusplus, lang_java };
/* Macros to make error reporting functions' lives easier. */