aboutsummaryrefslogtreecommitdiff
path: root/packages/gcc-linaro/7.1-2017.05/952-bionic-errno.patch
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-07-17 16:40:52 -0700
committerGitHub <noreply@github.com>2017-07-17 16:40:52 -0700
commitbd11c0e91189208db07a9851708091fb951f823f (patch)
treeae44e66c668ca321a391548dda75f94c4725844c /packages/gcc-linaro/7.1-2017.05/952-bionic-errno.patch
parent16169e33c8f08f5ddbd36e9e8a17a28baee8399d (diff)
parent46c3e5e3d4a493a856fe4b234809bcbc61ed38de (diff)
downloadcrosstool-ng-bd11c0e91189208db07a9851708091fb951f823f.tar.gz
crosstool-ng-bd11c0e91189208db07a9851708091fb951f823f.tar.bz2
crosstool-ng-bd11c0e91189208db07a9851708091fb951f823f.zip
Merge pull request #780 from stilor/fix-linaro
Fix linaro
Diffstat (limited to 'packages/gcc-linaro/7.1-2017.05/952-bionic-errno.patch')
-rw-r--r--packages/gcc-linaro/7.1-2017.05/952-bionic-errno.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/gcc-linaro/7.1-2017.05/952-bionic-errno.patch b/packages/gcc-linaro/7.1-2017.05/952-bionic-errno.patch
new file mode 100644
index 00000000..91f6ca34
--- /dev/null
+++ b/packages/gcc-linaro/7.1-2017.05/952-bionic-errno.patch
@@ -0,0 +1,19 @@
+commit 6cd4ad106ef87a3c58b0c3478e78409b47000de0
+Author: Howard Chu <hyc@symas.com>
+Date: Tue Apr 25 20:17:03 2017 -0700
+
+ Fix, errno is volatile int
+
+diff --git a/libstdc++-v3/src/filesystem/dir.cc b/libstdc++-v3/src/filesystem/dir.cc
+index 6ff12d0..5bbd664 100644
+--- a/libstdc++-v3/src/filesystem/dir.cc
++++ b/libstdc++-v3/src/filesystem/dir.cc
+@@ -147,7 +147,7 @@ fs::_Dir::advance(error_code* ec, directory_options options)
+
+ int err = std::exchange(errno, 0);
+ const auto entp = readdir(dirp);
+- std::swap(errno, err);
++ std::swap((int&)errno, err);
+
+ if (entp)
+ {