mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 17:35:25 +08:00
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:
parent
f861f67479
commit
600a4ce72b
@ -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)
|
||||||
|
|
||||||
|
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user