Commit b941bcbc by Craig Burley Committed by Jeff Law

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
parent 48e87cef
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.
......
......@@ -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),
......
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