Re: [cxx-abi-dev] decimal floating point support for C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



Lawrence Crowl wrote:

> I agree with Daveed here.  The real problem is that compilers either
> need to recognize the name or the libstdc++ source needs to specially
> mark them.  I lean towards doing the former.

I tend to agree.  The ABI has very little to say about the source
language; it's about the binary implementation.  Therefore, saying that
the class "std::decimal32" object is passed using the same calling
conventions as a _decimal32 scalar seems a reasonable way to handle
this.  It's an ugly special case, but it's an ugly special case imposed
upon us by the fact that the C++ committee insisted on making these
classes, rather than new datatypes, thereby making it hard to
interoperate with C.

-- 
Mark Mitchell
CodeSourcery
mark@xxxxxxxxxxxxxxxx
(650) 331-3385 x713