]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Revert "libstdc++: Fix ctype changed after newlib update."
authorTamar Christina <tamar.christina@arm.com>
Tue, 7 Dec 2021 10:37:30 +0000 (10:37 +0000)
committerTamar Christina <tamar.christina@arm.com>
Tue, 7 Dec 2021 10:37:30 +0000 (10:37 +0000)
Newlib has reverted the commit that caused us to require a
workaround.  As such we can now revert the workaround.

This reverts commit 0e510ab53414430e93c6f5b64841e2f40031cda7.

libstdc++-v3/ChangeLog:

PR libstdc++/103305
* config/os/newlib/ctype_base.h (upper, lower, alpha, digit, xdigit,
space, print, graph, cntrl, punct, alnum, blank): Revert.

libstdc++-v3/config/os/newlib/ctype_base.h

index 3a7477afdcc76e5a5bc6b0a86d2264c5bc8ab7f8..33654d7794a0cff3ba4ebe78e28882d78866dd94 100644 (file)
@@ -41,7 +41,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     // NB: Offsets into ctype<char>::_M_table force a particular size
     // on the mask type. Because of this, we don't use an enum.
     typedef char               mask;
-#if defined _U && defined _L && defined _N && defined _S
     static const mask upper            = _U;
     static const mask lower    = _L;
     static const mask alpha    = _U | _L;
@@ -53,24 +52,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     static const mask cntrl    = _C;
     static const mask punct    = _P;
     static const mask alnum    = _U | _L | _N;
-# if __cplusplus >= 201103L
+#if __cplusplus >= 201103L
     static const mask blank    = space;
-# endif
-#else
-    static const mask upper    = _ISupper;
-    static const mask lower    = _ISlower;
-    static const mask alpha    = _ISupper | _ISlower;
-    static const mask digit    = _ISdigit;
-    static const mask xdigit   = _ISxdigit | _ISdigit;
-    static const mask space    = _ISspace;
-    static const mask print    = _ISpunct | _ISupper | _ISlower | _ISdigit | _ISblank;
-    static const mask graph    = _ISpunct | _ISupper | _ISlower | _ISdigit;
-    static const mask cntrl    = _IScntrl;
-    static const mask punct    = _ISpunct;
-    static const mask alnum    = _ISupper | _ISlower | _ISdigit;
-# if __cplusplus >= 201103L
-    static const mask blank    =  _ISspace | _ISblank;
-# endif
 #endif
   };