From d7b1296b16ee15aad8b42ec4dc9766e9e87fe6eb Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Thu, 13 Jul 2017 10:38:44 -0700 Subject: Update to GCC 6.4 Deleted patches have been picked up upstream. Signed-off-by: Alexey Neyman --- packages/gcc/6.4.0/952-bionic-errno.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 packages/gcc/6.4.0/952-bionic-errno.patch (limited to 'packages/gcc/6.4.0/952-bionic-errno.patch') diff --git a/packages/gcc/6.4.0/952-bionic-errno.patch b/packages/gcc/6.4.0/952-bionic-errno.patch new file mode 100644 index 00000000..91f6ca34 --- /dev/null +++ b/packages/gcc/6.4.0/952-bionic-errno.patch @@ -0,0 +1,19 @@ +commit 6cd4ad106ef87a3c58b0c3478e78409b47000de0 +Author: Howard Chu +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) + { -- cgit v1.2.3