[Bug libquadmath/85440] libquadmath and quadmath.h do not exist on ppc64
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 20 10:05:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85440
--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Dennis Clarke from comment #16)
> It is annoying that the gcc compiler will produce the correct
> assembly for both the IBM long double and the IEEE 754-2008
> type 128-bit floating point. One sort of works and the other
I have no idea what you mean by correct assembly for -mabi=ieeelongdouble.
If you try something as simple as
long double add (long double x, long double y) { return x + y; }
you'll see that it emits the SVR4 ABI calls like _q_add etc. for the software
emulation, but neither glibc nor gcc provides implementation for these.
So it doesn't work at all unless you provide your own library. This isn't some
gap that libquadmath can cover, that library requires that {+,-,*,/} etc. work
and furthermore the type needs to be __float128, not long double.
More information about the Gcc-bugs
mailing list