On Mon, 24 Jan 2022 at 17:42, Patrick Palka via Libstdc++ <libstd...@gcc.gnu.org> wrote: > > On Sun, Jan 23, 2022 at 5:53 PM Jonathan Wakely via Gcc-patches > <gcc-patches@gcc.gnu.org> wrote: > > > > Tested powerpc64le-linux, pushed to trunk. > > > > > > We can use the new from_chars implementation when long double and double > > have the same representation. > > I suppose we should also update <charconv> to sync the conditions that > define __cpp_lib_to_chars and that declare the fp to_chars overloads? > They're currently guarded by _GLIBCXX_HAVE_USELOCALE which is overly > conservative, as e.g. the float/double overloads are now also > available when _GLIBCXX_FLOAT_IS_IEEE_BINARY32 && > _GLIBCXX_DOUBLE_IS_IEEE_BINARY64, and additionally the long double > overload is available when _GLIBCXX_LONG_DOUBLE_IS_IEEE_BINARY64.
Ah yes, we definitely should.