From: Jonathan Wakely Date: Thu, 17 Aug 2023 23:26:49 +0000 (+0100) Subject: Revert "libstdc++: Reuse double overload of __convert_to_v if possible" X-Git-Tag: basepoints/gcc-15~6829 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b860e657802b96ea2f00e53b2040ef100bedbc89;p=thirdparty%2Fgcc.git Revert "libstdc++: Reuse double overload of __convert_to_v if possible" This reverts commit aad83d61d2e92b168688f7b6bd00b8604d11fc9f. libstdc++-v3/ChangeLog: * config/locale/generic/c_locale.cc: --- diff --git a/libstdc++-v3/config/locale/generic/c_locale.cc b/libstdc++-v3/config/locale/generic/c_locale.cc index 866ba0361dc4..8849d78fdfac 100644 --- a/libstdc++-v3/config/locale/generic/c_locale.cc +++ b/libstdc++-v3/config/locale/generic/c_locale.cc @@ -187,11 +187,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __convert_to_v(const char* __s, long double& __v, ios_base::iostate& __err, const __c_locale&) throw() { -#if __DBL_MANT_DIG__ == __LDBL_MANT_DIG__ - double __d; - __convert_to_v(__s, __d, __err, __c_locale); - __v = __d; -#else // Assumes __s formatted for "C" locale. const char* __sav = __set_C_locale(); if (!__sav) @@ -238,7 +233,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION setlocale(LC_ALL, __sav); delete [] __sav; -#endif // __DBL_MANT_DIG__ == __LDBL_MANT_DIG__ } void