Re: [committed] libstdc++: Define std::to_chars overloads for __ieee128 [PR 98389]

2021-02-24 Thread Jonathan Wakely via Gcc-patches
On 24/02/21 17:00 +, Jonathan Wakely via Libstdc++ wrote: @@ -815,6 +852,39 @@ template return result; } +namespace +{ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wabi" + template + inline int + sprintf_ld(char* buffer, const char* format_string, T value, Extra...

Re: [committed] libstdc++: Define std::to_chars overloads for __ieee128 [PR 98389]

2021-02-24 Thread Jonathan Wakely via Gcc-patches
On 24/02/21 17:00 +, Jonathan Wakely via Libstdc++ wrote: libstdc++: Define std::to_chars overloads for __ieee128 [PR 98389] This adds overloads of std::to_chars for powerpc64's __ieee128, so that std::to_chars can be used for long double when -mabi=ieeelongdouble is in used.

[committed] libstdc++: Define std::to_chars overloads for __ieee128 [PR 98389]

2021-02-24 Thread Jonathan Wakely via Gcc-patches
This adds overloads of std::to_chars for powerpc64's __ieee128, so that std::to_chars can be used for long double when -mabi=ieeelongdouble is in used. Eventually we'll want to extend these new overloads to work for __float128 on all targets that support that type. For now, we're only doing it for