From 600a4ce72b4de654f689e02f89724c30a54ffa61 Mon Sep 17 00:00:00 2001 From: Craig Burley Date: Sat, 28 Mar 1998 00:38:46 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/stmt.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c887af59d78..860da318c26 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Sat Mar 28 01:37:33 1998 Craig Burley + + * 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 Jeffrey A Law (law@cygnus.com) diff --git a/gcc/stmt.c b/gcc/stmt.c index 2b518fcfd69..b4447352c80 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),