aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorCraig Burley <burley@gnu.ai.mit.edu>1998-03-28 00:38:46 +0000
committerJeff Law <law@gcc.gnu.org>1998-03-27 17:38:46 -0700
commit600a4ce72b4de654f689e02f89724c30a54ffa61 (patch)
tree6074ba2cb1eea3308b04f8a3c5922f1e6f9592dc /gcc/stmt.c
parentf861f67479533a105f36dd7c82eee9f46bde36ce (diff)
downloadgcc-600a4ce72b4de654f689e02f89724c30a54ffa61.zip
gcc-600a4ce72b4de654f689e02f89724c30a54ffa61.tar.gz
gcc-600a4ce72b4de654f689e02f89724c30a54ffa61.tar.bz2
stmt.c (expand_expr_stmt): Must generate code for statements within an expression (gcc's `({ ...
* stmt.c (expand_expr_stmt): Must generate code for statements within an expression (gcc's `({ ... )}') even if -fsyntax-only. Patch from Craig. From-SVN: r18865
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 2b518fc..b444735 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -1536,7 +1536,7 @@ expand_expr_stmt (exp)
exp = build1 (ADDR_EXPR, build_pointer_type (TREE_TYPE (exp)), exp);
last_expr_type = TREE_TYPE (exp);
- if (! flag_syntax_only)
+ if (! flag_syntax_only || expr_stmts_for_value)
last_expr_value = expand_expr (exp,
(expr_stmts_for_value
? NULL_RTX : const0_rtx),