2000-04-30 Mark Mitchell <mark@codesourcery.com>
+ * method.c (emit_thunk): Don't try to return a `void' value.
+
* optimize.c (initialize_inlined_parameters): If the parameter is
addressable, we need to make a new VAR_DECL, even if the
initializer is constant.
t = tree_cons (NULL_TREE, a, t);
t = nreverse (t);
t = build_call (function, t);
- finish_return_stmt (t);
+ if (!same_type_p (TREE_TYPE (t), void_type_node))
+ finish_return_stmt (t);
+ else
+ finish_expr_stmt (t);
/* The back-end expects DECL_INITIAL to contain a BLOCK, so we
clear this here. */