Commit 6b4e8391 by Jason Merrill Committed by Jason Merrill

expr.c (cplus_expand_expr): Only do PCC_STATIC_STRUCT_RETURN thing if (aggregate_value_p (type)).

	* expr.c (cplus_expand_expr): Only do PCC_STATIC_STRUCT_RETURN thing
	if (aggregate_value_p (type)).

From-SVN: r18823
parent e98e406f
Wed Mar 25 02:01:02 1998 Jason Merrill <jason@yorick.cygnus.com> Wed Mar 25 02:01:02 1998 Jason Merrill <jason@yorick.cygnus.com>
* expr.c (cplus_expand_expr): Only do PCC_STATIC_STRUCT_RETURN thing
if (aggregate_value_p (type)).
* decl2.c (constructor_name_full): Handle TYPENAME_TYPE. * decl2.c (constructor_name_full): Handle TYPENAME_TYPE.
Tue Mar 24 16:12:01 1998 Mark Mitchell <mmitchell@usa.net> Tue Mar 24 16:12:01 1998 Mark Mitchell <mmitchell@usa.net>
......
...@@ -114,11 +114,13 @@ cplus_expand_expr (exp, target, tmode, modifier) ...@@ -114,11 +114,13 @@ cplus_expand_expr (exp, target, tmode, modifier)
} }
else else
{ {
#ifdef PCC_STATIC_STRUCT_RETURN
pcc_struct_return = 1;
call_target = 0;
#else
call_target = target; call_target = target;
#ifdef PCC_STATIC_STRUCT_RETURN
if (aggregate_value_p (type))
{
pcc_struct_return = 1;
call_target = 0;
}
#endif #endif
} }
......
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