Re: C++ support for decimal floating point

2009-09-29 Thread Jason Merrill
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 differ

Re: C++ support for decimal floating point

2009-09-29 Thread Richard Henderson
On 09/29/2009 01:49 PM, Janis Johnson wrote: On Tue, 2009-09-29 at 13:37 -0700, Richard Henderson wrote: On 09/29/2009 01:20 PM, Janis Johnson wrote: 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 f

Re: C++ support for decimal floating point

2009-09-29 Thread Janis Johnson
On Tue, 2009-09-29 at 13:37 -0700, Richard Henderson wrote: > On 09/29/2009 01:20 PM, Janis Johnson wrote: > > 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? > > cp_

Re: C++ support for decimal floating point

2009-09-29 Thread Richard Henderson
On 09/29/2009 01:20 PM, Janis Johnson wrote: 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? cp_genericize? Though I'm not sure what to do about global variables... r~

Re: C++ support for decimal floating point

2009-09-29 Thread Janis Johnson
On Wed, 2009-09-23 at 18:39 -0500, Gabriel Dos Reis wrote: > On Wed, Sep 23, 2009 at 6:23 PM, Janis Johnson wrote: > > On Wed, 2009-09-23 at 16:27 -0500, Gabriel Dos Reis wrote: > >> On Wed, Sep 23, 2009 at 4:11 PM, Janis Johnson wrote: > >> > On Wed, 2009-09-23 at 10:29 +0200, Richard Guenther w

Re: C++ support for decimal floating point

2009-09-29 Thread Janis Johnson
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 particula

Re: C++ support for decimal floating point

2009-09-23 Thread Gabriel Dos Reis
On Wed, Sep 23, 2009 at 6:23 PM, Janis Johnson wrote: > On Wed, 2009-09-23 at 16:27 -0500, Gabriel Dos Reis wrote: >> On Wed, Sep 23, 2009 at 4:11 PM, Janis Johnson wrote: >> > On Wed, 2009-09-23 at 10:29 +0200, Richard Guenther wrote: >> >> On Wed, Sep 23, 2009 at 2:38 AM, Janis Johnson >> >>

Re: C++ support for decimal floating point

2009-09-23 Thread Janis Johnson
On Wed, 2009-09-23 at 16:27 -0500, Gabriel Dos Reis wrote: > On Wed, Sep 23, 2009 at 4:11 PM, Janis Johnson wrote: > > On Wed, 2009-09-23 at 10:29 +0200, Richard Guenther wrote: > >> On Wed, Sep 23, 2009 at 2:38 AM, Janis Johnson wrote: > >> > I've been implementing ISO/IEC TR 24733, "an extensio

Re: C++ support for decimal floating point

2009-09-23 Thread Gabriel Dos Reis
On Wed, Sep 23, 2009 at 4:11 PM, Janis Johnson wrote: > On Wed, 2009-09-23 at 10:29 +0200, Richard Guenther wrote: >> On Wed, Sep 23, 2009 at 2:38 AM, Janis Johnson wrote: >> > I've been implementing ISO/IEC TR 24733, "an extension for the >> > programming language C++ to support decimal floating

Re: C++ support for decimal floating point

2009-09-23 Thread Richard Henderson
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_

Re: C++ support for decimal floating point

2009-09-23 Thread Janis Johnson
On Wed, 2009-09-23 at 10:29 +0200, Richard Guenther wrote: > On Wed, Sep 23, 2009 at 2:38 AM, Janis Johnson wrote: > > I've been implementing ISO/IEC TR 24733, "an extension for the > > programming language C++ to support decimal floating-point arithmetic", > > in GCC. It might be ready as an exp

Re: C++ support for decimal floating point

2009-09-23 Thread Richard Guenther
On Wed, Sep 23, 2009 at 2:38 AM, Janis Johnson wrote: > I've been implementing ISO/IEC TR 24733, "an extension for the > programming language C++ to support decimal floating-point arithmetic", > in GCC.  It might be ready as an experimental feature for 4.5, but I > would particularly like to get i