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
This commit is contained in:
Craig Burley 1998-03-28 00:38:46 +00:00 committed by Jeff Law
parent f861f67479
commit 600a4ce72b
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Sat Mar 28 01:37:33 1998 Craig Burley <burley@gnu.ai.mit.edu>
* stmt.c (expand_expr_stmt): Must generate code for
statements within an expression (gcc's `({ ... )}')
even if -fsyntax-only.
Sat Mar 28 01:06:12 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de> Sat Mar 28 01:06:12 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
Jeffrey A Law (law@cygnus.com) Jeffrey A Law (law@cygnus.com)

View File

@ -1536,7 +1536,7 @@ expand_expr_stmt (exp)
exp = build1 (ADDR_EXPR, build_pointer_type (TREE_TYPE (exp)), exp); exp = build1 (ADDR_EXPR, build_pointer_type (TREE_TYPE (exp)), exp);
last_expr_type = TREE_TYPE (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, last_expr_value = expand_expr (exp,
(expr_stmts_for_value (expr_stmts_for_value
? NULL_RTX : const0_rtx), ? NULL_RTX : const0_rtx),