[cxx-abi-dev] decimal floating point support for C++

Janis Johnson janis187 at us.ibm.com
Tue Aug 4 18:26:44 UTC 2009


On Thu, 2009-07-30 at 11:09 -0700, Mark Mitchell wrote:
> Jason Merrill wrote:
> 
> >> Given that libstdc++ is used with compilers other than G++, is it
> >> reasonable to depend on non-standard C++ compiler support?
> > 
> > The question for this list is, rather, do we want to standardise the
> > necessary compiler support?
> 
> What support would we be standardizing?  Special handling of these
> classes, or some source-level attribute for passing these classes as if
> they were scalars, or ...?

First off would be allowing the classes to use, internally, something
like

  typedef float _decfloat64 __attribute__((mode(DD)));

or the equivalent for each compiler that uses libstdc++ and for which
<decimal> would be supported.

Secondly, a way to use that type for extern "C" function declarations
(or perhaps a source-level attribute) to pass the class as a scalar
using the target's ABI for decimal float types.

Janis




More information about the cxx-abi-dev mailing list