diff options
author | Mark Mitchell <mark@codesourcery.com> | 2002-04-17 01:47:36 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2002-04-17 01:47:36 +0000 |
commit | b2123dc0d8b3c18313c9aae7bddf57af0b4a6bf7 (patch) | |
tree | 945ba924fcaf4c9312b124d4f9724e8c510bc166 /gcc/tree-inline.c | |
parent | f0871dfe8ff3366c0404f151a722fc5de3f614c7 (diff) | |
download | gcc-b2123dc0d8b3c18313c9aae7bddf57af0b4a6bf7.zip gcc-b2123dc0d8b3c18313c9aae7bddf57af0b4a6bf7.tar.gz gcc-b2123dc0d8b3c18313c9aae7bddf57af0b4a6bf7.tar.bz2 |
c-common.h (STMT_EXPR_NO_SCOPE): New macro.
* c-common.h (STMT_EXPR_NO_SCOPE): New macro.
* c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
* tree.h (expand_start_stmt_expr): Update prototype.
* stmt.c (expand_start_stmt_expr): Add has_scope parameter.
* tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
on the STMT_EXPR created for the inline function.
* trans.c (tree_transform): Add has_scope argument to
expand_start_stmt_expr.
* com.c (ffecom_expr_power_integer): Add has_scope argument to
call to expand_start_stmt_expr.
* init.c (begin_init_stmts): Remove commented out code.
(finish_init_stmts): Set STMT_EXPR_NO_SCOPE.
* semantics.c (begin_gobal_stmt_expr): Adjust call to
expand_start_stmt_expr.
From-SVN: r52395
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index b255ee0..759b55e 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -854,6 +854,8 @@ expand_call_inline (tp, walk_subtrees, data) type of the statement expression is the return type of the function call. */ expr = build1 (STMT_EXPR, TREE_TYPE (TREE_TYPE (fn)), NULL_TREE); + /* There is no scope associated with the statement-expression. */ + STMT_EXPR_NO_SCOPE (expr) = 1; /* Local declarations will be replaced by their equivalents in this map. */ |