OSDN Git Service

* stmt.c (expand_expr_stmt): Keep last_expr_value non-NULL iff
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Dec 2001 10:30:04 +0000 (10:30 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Dec 2001 10:30:04 +0000 (10:30 +0000)
commit5b365acda95d11923460e307b1c0f2ec2fdcb31a
tree764fcb1b30f9b79f8a0f0dc4fa3f07a61527c096
parentdf10b42593a9a2bb76b56c9766647630d03c0c74
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47607 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-common.c
gcc/expr.c
gcc/stmt.c
gcc/tree.h