diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-10 08:07:13 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-10 08:07:13 +0000 |
commit | bac624360b7b8c029b92989befa0f56e704094cf (patch) | |
tree | 1dde01740299a69072dd80110dc8eeb2a9b2789c /gcc/tree-inline.c | |
parent | a2febbfb2b290b8238dcba21e7df3788c2bb86ab (diff) | |
download | gcc-bac624360b7b8c029b92989befa0f56e704094cf.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65422 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index be72b59c213..0131952c6a2 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1588,7 +1588,7 @@ walk_tree (tp, func, data, htab_) interesting below this point in the tree. */ if (!walk_subtrees) { - if (statement_code_p (code) || code == TREE_LIST + if (STATEMENT_CODE_P (code) || code == TREE_LIST || (*lang_hooks.tree_inlining.tree_chain_matters_p) (*tp)) /* But we still need to check our siblings. */ WALK_SUBTREE_TAIL (TREE_CHAIN (*tp)); @@ -1613,7 +1613,7 @@ walk_tree (tp, func, data, htab_) #ifndef INLINER_FOR_JAVA /* Set lineno here so we get the right instantiation context if we call instantiate_decl from inlinable_function_p. */ - if (statement_code_p (code) && !STMT_LINENO_FOR_FN_P (*tp)) + if (STATEMENT_CODE_P (code) && !STMT_LINENO_FOR_FN_P (*tp)) lineno = STMT_LINENO (*tp); #endif /* not INLINER_FOR_JAVA */ @@ -1632,7 +1632,7 @@ walk_tree (tp, func, data, htab_) #ifndef INLINER_FOR_JAVA /* For statements, we also walk the chain so that we cover the entire statement tree. */ - if (statement_code_p (code)) + if (STATEMENT_CODE_P (code)) { if (code == DECL_STMT && DECL_STMT_DECL (*tp) @@ -1823,7 +1823,7 @@ copy_tree_r (tp, walk_subtrees, data) if (code == PARM_DECL || code == TREE_LIST #ifndef INLINER_FOR_JAVA || (*lang_hooks.tree_inlining.tree_chain_matters_p) (*tp) - || statement_code_p (code)) + || STATEMENT_CODE_P (code)) TREE_CHAIN (*tp) = chain; /* For now, we don't update BLOCKs when we make copies. So, we |