summaryrefslogtreecommitdiff
path: root/lang/gcc6-aux/files/diff-cxx
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2016-03-16 10:46:59 +0000
committerJohn Marino <marino@FreeBSD.org>2016-03-16 10:46:59 +0000
commitd0e4b42f8ae6c77931053d075c08ef363e1e00ca (patch)
tree5a2cc10ba0bc68b6253c1ea7282d0811f7eb5a76 /lang/gcc6-aux/files/diff-cxx
parentUpdate to 2.1. (diff)
lang/gcc6-aux: Upgrade version 20160306 => 20160313
The real addition is to complete support for the gnatdroid cross compilers. Rather than to revbump, let's just update to the latest snapshot instead.
Diffstat (limited to 'lang/gcc6-aux/files/diff-cxx')
-rw-r--r--lang/gcc6-aux/files/diff-cxx51
1 files changed, 51 insertions, 0 deletions
diff --git a/lang/gcc6-aux/files/diff-cxx b/lang/gcc6-aux/files/diff-cxx
index 672c9ca9965c..dff22624fd6c 100644
--- a/lang/gcc6-aux/files/diff-cxx
+++ b/lang/gcc6-aux/files/diff-cxx
@@ -10,3 +10,54 @@
linux-musl*)
os_include_dir="os/generic"
;;
+--- libstdc++-v3/config/os/bionic/ctype_base.h.orig
++++ libstdc++-v3/config/os/bionic/ctype_base.h
+@@ -38,6 +38,18 @@
+ // Non-standard typedefs.
+ typedef const int* __to_type;
+
++#ifdef _CTYPE_U
++#define _U _CTYPE_U
++#define _L _CTYPE_L
++#define _D _CTYPE_D
++#define _S _CTYPE_S
++#define _P _CTYPE_P
++#define _C _CTYPE_C
++#define _X _CTYPE_X
++#define _B _CTYPE_B
++#define _N _CTYPE_D
++#endif
++
+ // 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;
+--- libstdc++-v3/src/c++11/futex.cc.orig
++++ libstdc++-v3/src/c++11/futex.cc
+@@ -27,7 +27,11 @@
+ #if defined(_GLIBCXX_HAVE_LINUX_FUTEX) && ATOMIC_INT_LOCK_FREE > 1
+ #include <chrono>
+ #include <climits>
++#ifdef __ANDROID__
++#include <sys/syscall.h>
++#else
+ #include <syscall.h>
++#endif
+ #include <unistd.h>
+ #include <sys/time.h>
+ #include <errno.h>
+--- libstdc++-v3/src/filesystem/dir.cc.orig
++++ libstdc++-v3/src/filesystem/dir.cc
+@@ -147,7 +147,13 @@
+
+ int err = std::exchange(errno, 0);
+ const auto entp = readdir(dirp);
++#ifdef __ANDROID__
++ int tmperr = errno;
++ errno = err;
++ err = tmperr;
++#else
+ std::swap(errno, err);
++#endif
+
+ if (entp)
+ {