[PATCH] pass C++ decimal classes same as scalars

Janis Johnson janis187@us.ibm.com
Tue Dec 1 19:22:00 GMT 2009


On Mon, 2009-11-30 at 13:28 -0800, Janis Johnson wrote:
> On Wed, 2009-11-25 at 10:11 +0100, Paolo Bonzini wrote:
> > On 11/24/2009 12:34 AM, Janis Johnson wrote:
> > > +  /* If a record should be passed the same as its first (and only) member
> > > +     don't pass it as an aggregate.  */
> > > +  if (TREE_CODE (type) == RECORD_TYPE && TYPE_PASS_AS_TRANSPARENT (type))
> > > +    return 0;
> > > +
> > 
> > Wouldn't that be "return aggregate_value_p (TYPE_FIELDS (type));" instead?
> 
> That makes sense, I'm testing it now.

Jason, is this patch OK for trunk?  Testing completed for the patch at
http://gcc.gnu.org/ml/gcc-patches/2009-11/msg01321.html plus Paolo's
suggestion for "return aggregate_value_p (TYPE_FIELDS (type), fntype);".

Janis



More information about the Gcc-patches mailing list