aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorCraig Burley <craig@jcb-sc.com>1999-02-22 08:41:42 +0000
committerCraig Burley <burley@gcc.gnu.org>1999-02-22 03:41:42 -0500
commita2cf7debc7c05419c10d07324e93b157b4717283 (patch)
treebc15c0d4be49c5d0170ad06f8789fcd518cd20ee /gcc/stmt.c
parent3c350eb3d572db41b4466d3c7dd95d35abd8b1f8 (diff)
downloadgcc-a2cf7debc7c05419c10d07324e93b157b4717283.zip
gcc-a2cf7debc7c05419c10d07324e93b157b4717283.tar.gz
gcc-a2cf7debc7c05419c10d07324e93b157b4717283.tar.bz2
reduce spurious warnings using -fsyntax-only
From-SVN: r25366
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 8d4351a..2c0f4f6 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -1692,13 +1692,10 @@ 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 && ! expr_stmts_for_value)
- last_expr_value = 0;
- else
- last_expr_value = expand_expr (exp,
- (expr_stmts_for_value
- ? NULL_RTX : const0_rtx),
- VOIDmode, 0);
+ last_expr_value = expand_expr (exp,
+ (expr_stmts_for_value
+ ? NULL_RTX : const0_rtx),
+ VOIDmode, 0);
/* If all we do is reference a volatile value in memory,
copy it to a register to be sure it is actually touched. */