aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2003-04-10 08:07:13 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2003-04-10 08:07:13 +0000
commit009ed91036a508ccaa07c95f246adc3d763cc93c (patch)
tree1dde01740299a69072dd80110dc8eeb2a9b2789c /gcc/cp/parser.c
parent23cac8856600b027fe0397d99dbacb939675c11f (diff)
downloadgcc-009ed91036a508ccaa07c95f246adc3d763cc93c.zip
gcc-009ed91036a508ccaa07c95f246adc3d763cc93c.tar.gz
gcc-009ed91036a508ccaa07c95f246adc3d763cc93c.tar.bz2
c-common.h (lang_statement_code_p): Remove declaration.
2003-04-09 Steven Bosscher <steven@gcc.gnu.org> * c-common.h (lang_statement_code_p): Remove declaration. (statement_code_p): Ditto. (c_common_stmt_codes): Define; list of c-common statement codes. (statement_code_p): New extern declaration. (STATEMENT_CODE_P): Define. (INIT_STATEMENT_CODES): Define. * c-common.c (statement_code_p): Kill the function, declare as an array of bools instead. (lang_statement_code_p): Remove. (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p. (c_safe_from_p): Ditto. * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES to initialize the statement_code_p array. * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of statement_code_p. (copy_tree_r): Ditto. * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific statement tree codes. * cp/lex.c (cxx_init): Add missing print line break. Use INIT_STATEMENT_CODES to initialize the statement_code_p array. * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P instead of statement_code_p. * cp/pt.c (tsubst_expr): Ditto. * cp/tree.c (verify_stmt_tree_r): Ditto. (cp_statement_code_p): Remove. (init_tree): Don't set lang_statement_code_p, it's gone. From-SVN: r65422
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 8cc46f9..8f992c5 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -5660,7 +5660,7 @@ cp_parser_statement (cp_parser* parser)
}
/* Set the line number for the statement. */
- if (statement && statement_code_p (TREE_CODE (statement)))
+ if (statement && STATEMENT_CODE_P (TREE_CODE (statement)))
STMT_LINENO (statement) = statement_line_number;
}