c-common.h (genrtl_expr_stmt_value): Declare.
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 2 Jan 2002 02:31:58 +0000 (02:31 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 2 Jan 2002 02:31:58 +0000 (02:31 +0000)
commit1574ef130fb3149f09b3a1b36c65873a6e494582
tree88f850f8f5e7beb19776302640e41667d82628ef
parent6180abdb9dfdb541014932a732916a47a8bab8a5
c-common.h (genrtl_expr_stmt_value): Declare.

* c-common.h (genrtl_expr_stmt_value): Declare.
* c-semantics.c (genrtl_goto_stmt): Redirect to...
(genrtl_goto_stmt_value): ... this new function.  Pass new
argument down to expand_expr_stmt_value, taking
TREE_ADDRESSABLE into account.
* c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
STMT_EXPR as addressable, i.e., one whose result we want.
* expr.c (expand_expr): Don't save expression statement value
of labeled_blocks or loop_exprs.
* stmt.c (expand_expr_stmt): Redirect to...
(expand_expr_stmt_value): ... this new function.  Use new
argument to tell whether to save expression value.
(expand_end_stmt_expr): Reset last_expr_type and
last_expr_value if we don't have either.
* tree-inline.c (declare_return_variable): Mark its use
statement as addressable.
* tree.h: Document new use of TREE_ADDRESSABLE.
(expand_expr_stmt_value): Declare.

From-SVN: r48456
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-semantics.c
gcc/expr.c
gcc/stmt.c
gcc/tree-inline.c
gcc/tree.h