public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-3310] Revert "libstdc++: Reuse double overload of __convert_to_v if possible"
@ 2023-08-17 23:28 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-08-17 23:28 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:b860e657802b96ea2f00e53b2040ef100bedbc89

commit r14-3310-gb860e657802b96ea2f00e53b2040ef100bedbc89
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Fri Aug 18 00:26:49 2023 +0100

    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:
---
 libstdc++-v3/config/locale/generic/c_locale.cc | 6 ------
 1 file changed, 6 deletions(-)

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-17 23:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-17 23:28 [gcc r14-3310] Revert "libstdc++: Reuse double overload of __convert_to_v if possible" Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).