From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8110 invoked by alias); 30 Sep 2009 04:42:15 -0000 Received: (qmail 8081 invoked by uid 22791); 30 Sep 2009 04:42:12 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Sep 2009 04:42:08 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8U4g7G2012678; Wed, 30 Sep 2009 00:42:07 -0400 Received: from [IPv6:::1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8U4g6XT000720; Wed, 30 Sep 2009 00:42:06 -0400 Message-ID: <4AC2E19C.7060901@redhat.com> Date: Wed, 30 Sep 2009 04:47:00 -0000 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20090928 Shredder/3.0pre MIME-Version: 1.0 Newsgroups: gmane.comp.gcc.libstdc++.devel,gmane.comp.gcc.devel To: janis187@us.ibm.com CC: Gabriel Dos Reis , Richard Guenther , gcc@gcc.gnu.org, libstdc++@gcc.gnu.org Subject: Re: C++ support for decimal floating point References: <1253666313.6130.8.camel@janis-laptop> <84fc9c000909230129w167878ccn2b3402b7305d1366@mail.gmail.com> <1253740316.5999.6.camel@janis-laptop> <206fcf960909231427t33830d1cu15402a72acbb4159@mail.gmail.com> <1253748187.5999.12.camel@janis-laptop> <206fcf960909231639s47123c2dqaa21d9493e79d995@mail.gmail.com> <1254255810.6078.26.camel@janis-laptop> In-Reply-To: <1254255810.6078.26.camel@janis-laptop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg00626.txt.bz2 On 09/29/2009 04:23 PM, Janis Johnson wrote: > The PowerPC 32-bit ELF ABI says that a struct is passed as a pointer > to an object or a copy of the object. Classes are treated the same > as classes. Does the C++ ABI have rules about classes like > std::complex that would cause them to be treated differently? No. Classes that are trivially copyable (such as complex) are passed according to the C ABI, which is suboptimal for many popular architectures. Jason From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11668 invoked by alias); 30 Sep 2009 04:45:09 -0000 Received: (qmail 11649 invoked by uid 22791); 30 Sep 2009 04:45:08 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Sep 2009 04:45:05 +0000 Received: from list by lo.gmane.org with local (Exim 4.50) id 1Msr3n-0001Bo-KC for gcc@gcc.gnu.org; Wed, 30 Sep 2009 06:45:03 +0200 Received: from 209-6-25-155.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com ([209.6.25.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Sep 2009 06:45:03 +0200 Received: from jason by 209-6-25-155.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Sep 2009 06:45:03 +0200 To: gcc@gcc.gnu.org From: Jason Merrill Subject: Re: C++ support for decimal floating point Date: Wed, 30 Sep 2009 07:17:00 -0000 Message-ID: <4AC2E19C.7060901@redhat.com> References: <1253666313.6130.8.camel@janis-laptop> <84fc9c000909230129w167878ccn2b3402b7305d1366@mail.gmail.com> <1253740316.5999.6.camel@janis-laptop> <206fcf960909231427t33830d1cu15402a72acbb4159@mail.gmail.com> <1253748187.5999.12.camel@janis-laptop> <206fcf960909231639s47123c2dqaa21d9493e79d995@mail.gmail.com> <1254255810.6078.26.camel@janis-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: libstdc++@gcc.gnu.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20090928 Shredder/3.0pre In-Reply-To: <1254255810.6078.26.camel@janis-laptop> Cc: gcc@gcc.gnu.org X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg00627.txt.bz2 Message-ID: <20090930071700.HEhNGTU8P7BpiI0MQqBPXBqOiHD4fiHHp2Ne8r41rs8@z> On 09/29/2009 04:23 PM, Janis Johnson wrote: > The PowerPC 32-bit ELF ABI says that a struct is passed as a pointer > to an object or a copy of the object. Classes are treated the same > as classes. Does the C++ ABI have rules about classes like > std::complex that would cause them to be treated differently? No. Classes that are trivially copyable (such as complex) are passed according to the C ABI, which is suboptimal for many popular architectures. Jason