diff options
author | Chris Packham <judge.packham@gmail.com> | 2023-07-10 16:56:35 +1200 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2023-07-14 14:01:33 +1200 |
commit | dac4403390e5fb6afe4b4267506e4c68633fa620 (patch) | |
tree | 74c30a4f6b4f3597bd33d662c3f105879a351b6e /packages/gcc/10.5.0/0009-bionic-ndk.patch | |
parent | ada71ff2a078b5de3c42f5b5a7c00e89fd2f708d (diff) | |
download | crosstool-ng-dac4403390e5fb6afe4b4267506e4c68633fa620.tar.gz crosstool-ng-dac4403390e5fb6afe4b4267506e4c68633fa620.tar.bz2 crosstool-ng-dac4403390e5fb6afe4b4267506e4c68633fa620.zip |
gcc: Update 10.4 -> 10.5
Add GCC 10.5.0 and regenerate patches against the new version.
https://gcc.gnu.org/pipermail/gcc-announce/2023/000178.html
https://gcc.gnu.org/gcc-10/changes.html
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'packages/gcc/10.5.0/0009-bionic-ndk.patch')
-rw-r--r-- | packages/gcc/10.5.0/0009-bionic-ndk.patch | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/packages/gcc/10.5.0/0009-bionic-ndk.patch b/packages/gcc/10.5.0/0009-bionic-ndk.patch new file mode 100644 index 00000000..474dd8c0 --- /dev/null +++ b/packages/gcc/10.5.0/0009-bionic-ndk.patch @@ -0,0 +1,60 @@ +commit d38d37bdfe24b7ce1bdcb55642fb6b904718e68f +Author: Howard Chu <hyc@symas.com> +Date: Tue Apr 25 19:02:18 2017 -0700 + + Fix ctype for newer NDK headers + +--- + libstdc++-v3/config/os/bionic/ctype_base.h | 34 +++++++++++++++++++---------- + 1 file changed, 23 insertions(+), 11 deletions(-) + +--- a/libstdc++-v3/config/os/bionic/ctype_base.h ++++ b/libstdc++-v3/config/os/bionic/ctype_base.h +@@ -28,6 +28,18 @@ + + // Information as gleaned from /usr/include/ctype.h + ++// _CTYPE prefix was added in NDK r14 unified headers ++#ifndef _CTYPE_U ++#define _CTYPE_U _U ++#define _CTYPE_L _L ++#define _CTYPE_D _N ++#define _CTYPE_S _S ++#define _CTYPE_P _P ++#define _CTYPE_C _C ++#define _CTYPE_X _X ++#define _CTYPE_B _B ++#endif ++ + namespace std _GLIBCXX_VISIBILITY(default) + { + _GLIBCXX_BEGIN_NAMESPACE_VERSION +@@ -41,17 +53,17 @@ + // 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; +- static const mask upper = _U; +- static const mask lower = _L; +- static const mask alpha = _U | _L; +- static const mask digit = _N; +- static const mask xdigit = _X | _N; +- static const mask space = _S; +- static const mask print = _P | _U | _L | _N | _B; +- static const mask graph = _P | _U | _L | _N; +- static const mask cntrl = _C; +- static const mask punct = _P; +- static const mask alnum = _U | _L | _N; ++ static const mask upper = _CTYPE_U; ++ static const mask lower = _CTYPE_L; ++ static const mask alpha = _CTYPE_U | _CTYPE_L; ++ static const mask digit = _CTYPE_D; ++ static const mask xdigit = _CTYPE_X | _CTYPE_D; ++ static const mask space = _CTYPE_S; ++ static const mask print = _CTYPE_P | _CTYPE_U | _CTYPE_L | _CTYPE_D | _CTYPE_B; ++ static const mask graph = _CTYPE_P | _CTYPE_U | _CTYPE_L | _CTYPE_D; ++ static const mask cntrl = _CTYPE_C; ++ static const mask punct = _CTYPE_P; ++ static const mask alnum = _CTYPE_U | _CTYPE_L | _CTYPE_D; + #if __cplusplus >= 201103L + static const mask blank = space; + #endif |