Commit ff682191 by Tom Tromey Committed by Tom Tromey

* expr.c (push_value): Always flush quick stack.

From-SVN: r116905
parent 6df77645
2006-09-12 Tom Tromey <tromey@redhat.com>
* expr.c (push_value): Always flush quick stack.
2006-09-12 Tom Tromey <tromey@redhat.com>
PR java/29013:
* jcf-write.c (generate_bytecode_insns) <CALL_EXPR>: Always note
the push of the called method's return result.
......
......@@ -301,6 +301,13 @@ push_value (tree value)
TREE_CHAIN (node) = quick_stack;
quick_stack = node;
}
/* If the value has a side effect, then we need to evaluate it
whether or not the result is used. If the value ends up on the
quick stack and is then popped, this won't happen -- so we flush
the quick stack. It is safest to simply always flush, though,
since TREE_SIDE_EFFECTS doesn't capture COMPONENT_REF, and for
the latter we may need to strip conversions. */
flush_quick_stack ();
}
/* Pop a type from the type stack.
......
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