stmt.c (expand_expr_stmt): Keep last_expr_value non-NULL iff we're interested in...
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 4 Dec 2001 10:30:04 +0000 (10:30 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 4 Dec 2001 10:30:04 +0000 (10:30 +0000)
commitd1bd43d95082914bdc5e6f782ed0a919ff4305e2
tree764fcb1b30f9b79f8a0f0dc4fa3f07a61527c096
parent1b3ea405b0f468e456251a24fede3012be58b3ff
stmt.c (expand_expr_stmt): Keep last_expr_value non-NULL iff we're interested in the result.

* stmt.c (expand_expr_stmt): Keep last_expr_value non-NULL iff
we're interested in the result.  Use it to tell whether to
ignore results of enclosed expressions.
(expand_start_stmt_expr): Added new argument, and initialize
last_expr_value accordingly.
* tree.h (expand_start_stmt_expr): Adjusted declaration.
* c-common.c (c_expand_expr): Adjust call.
* expr.c (expand_expr) [EXPR_WFL]: Pass const0_rtx down if
ignoring the result.

From-SVN: r47607
gcc/ChangeLog
gcc/c-common.c
gcc/expr.c
gcc/stmt.c
gcc/tree.h