Commit 600a4ce7 by Craig Burley Committed by Jeff Law

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
parent f861f674
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)
......
...@@ -1536,7 +1536,7 @@ expand_expr_stmt (exp) ...@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment