stmt.c (expand_expr_stmt): If not assigning fresh value to last_expr_value...

* stmt.c (expand_expr_stmt): If not assigning fresh
        value to last_expr_value, zero it, so old garbage
        doesn't get dereferenced.

From-SVN: r21116
This commit is contained in:
Craig Burley 1998-07-13 18:21:01 -04:00 committed by Jeff Law
parent 48e87cefab
commit b941bcbc1f
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Mon Jul 13 23:18:39 1998 Craig Burley <burley@gnu.org>
* stmt.c (expand_expr_stmt): If not assigning fresh
value to last_expr_value, zero it, so old garbage
doesn't get dereferenced.
Mon Jul 13 23:06:55 1998 Henning.Petersen@t-online.de (Henning Petersen)
* gcse.c (hash_scan_insn): Add missing argument declaration.

View File

@ -1533,7 +1533,9 @@ 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)
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),