From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7901 invoked by alias); 29 Sep 2009 20:20:37 -0000 Received: (qmail 7883 invoked by uid 22791); 29 Sep 2009 20:20:36 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from e31.co.us.ibm.com (HELO e31.co.us.ibm.com) (32.97.110.149) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 Sep 2009 20:20:31 +0000 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e31.co.us.ibm.com (8.14.3/8.13.1) with ESMTP id n8TKECOR021133; Tue, 29 Sep 2009 14:14:12 -0600 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n8TKKDto211758; Tue, 29 Sep 2009 14:20:14 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n8TKK9pe029794; Tue, 29 Sep 2009 14:20:09 -0600 Received: from [9.47.18.91] (dyn9047018091.beaverton.ibm.com [9.47.18.91]) by d03av02.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n8TKK8Mq029731; Tue, 29 Sep 2009 14:20:08 -0600 Subject: Re: C++ support for decimal floating point From: Janis Johnson Reply-To: janis187@us.ibm.com To: Richard Henderson Cc: Richard Guenther , gcc@gcc.gnu.org, libstdc++@gcc.gnu.org In-Reply-To: <4ABA9153.1010803@redhat.com> References: <1253666313.6130.8.camel@janis-laptop> <84fc9c000909230129w167878ccn2b3402b7305d1366@mail.gmail.com> <1253740316.5999.6.camel@janis-laptop> <4ABA9153.1010803@redhat.com> Content-Type: text/plain Date: Tue, 29 Sep 2009 20:23:00 -0000 Message-Id: <1254255609.6078.21.camel@janis-laptop> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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/msg00614.txt.bz2 On Wed, 2009-09-23 at 14:21 -0700, Richard Henderson wrote: > On 09/23/2009 02:11 PM, Janis Johnson wrote: > > The class types for std::decimal::decimal32 and friends do have the > > proper modes. I suppose I could special-case aggregates of those modes > > but the plan was to pass these particular classes (and typedefs of > > them) the same as scalars, rather than _any_ class with those modes. > > I'll bring this up again on the C++ ABI mailing list. > > You could special-case this in the C++ conversion to generic > by having the std::decimal classes decompose to scalars immediately. I've been trying to find a place in the C++ front end where I can replace all references to the class type to the scalar types, but haven't yet found it. Any suggestions? Janis