libstdc++: Disable std::format of _Float128 if std::to_chars is innaccurate
authorJonathan Wakely <jwakely@redhat.com>
Tue, 15 Nov 2022 15:31:17 +0000 (15:31 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 16 Nov 2022 20:52:03 +0000 (20:52 +0000)
commit22cb0fea718fd4dab8c97c8f03054a2fb7dc3d76
tree0c616f94853efe0f401de8913535f27b89afd3d4
parent96e4244ef3ccf4867ca4e37fbc6800e64ef30af6
libstdc++: Disable std::format of _Float128 if std::to_chars is innaccurate

This restricts std::format support for _Float128 (and __float128) to
targets where glibc provides __strfromf128 and so can give correct
output.

libstdc++-v3/ChangeLog:

* include/std/format [__FLT128_DIG__] (_GLIBCXX_FORMAT_F128):
Only support formatting _Float128 when glibc provides the
functionality needed for accurate std::to_chars.
libstdc++-v3/include/std/format