|
Mark Wielaard |
bef89a |
commit ef3ac601dfcd45b2e27bd09b84e85607ebd5183f
|
|
Mark Wielaard |
bef89a |
Author: bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9>
|
|
Mark Wielaard |
bef89a |
Date: Mon Jan 25 04:27:25 2016 +0000
|
|
Mark Wielaard |
bef89a |
|
|
Mark Wielaard |
bef89a |
configure.ac: Port to gcc 5
|
|
Mark Wielaard |
bef89a |
|
|
Mark Wielaard |
bef89a |
Apparently gcc 5 behaves as follows:
|
|
Mark Wielaard |
bef89a |
$ gcc -dumpversion
|
|
Mark Wielaard |
bef89a |
5
|
|
Mark Wielaard |
bef89a |
|
|
Mark Wielaard |
bef89a |
|
|
Mark Wielaard |
bef89a |
|
|
Mark Wielaard |
bef89a |
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15773 a5019735-40e9-0310-863c-91ae7b9d1cf9
|
|
Mark Wielaard |
bef89a |
|
|
Mark Wielaard |
bef89a |
diff --git a/configure.ac b/configure.ac
|
|
Mark Wielaard |
bef89a |
index e93c882..d621dca 100644
|
|
Mark Wielaard |
bef89a |
--- a/configure.ac
|
|
Mark Wielaard |
bef89a |
+++ b/configure.ac
|
|
Mark Wielaard |
bef89a |
@@ -160,7 +160,7 @@ case "${is_clang}-${gcc_version}" in
|
|
Mark Wielaard |
bef89a |
icc-1[[3-9]].*)
|
|
Mark Wielaard |
bef89a |
AC_MSG_RESULT([ok (ICC version ${gcc_version})])
|
|
Mark Wielaard |
bef89a |
;;
|
|
Mark Wielaard |
bef89a |
- notclang-[[3-9]].*|notclang-[[1-9][0-9]]*)
|
|
Mark Wielaard |
bef89a |
+ notclang-[[3-9]]|notclang-[[3-9]].*|notclang-[[1-9][0-9]]*)
|
|
Mark Wielaard |
bef89a |
AC_MSG_RESULT([ok (${gcc_version})])
|
|
Mark Wielaard |
bef89a |
;;
|
|
Mark Wielaard |
bef89a |
clang-2.9|clang-[[3-9]].*|clang-[[1-9][0-9]]*)
|
|
Mark Wielaard |
bef89a |
diff --git a/drd/tests/std_thread.cpp b/drd/tests/std_thread.cpp
|
|
Mark Wielaard |
bef89a |
index 9275c3a..6af7455 100644
|
|
Mark Wielaard |
bef89a |
--- a/drd/tests/std_thread.cpp
|
|
Mark Wielaard |
bef89a |
+++ b/drd/tests/std_thread.cpp
|
|
Mark Wielaard |
bef89a |
@@ -21,6 +21,7 @@ int main(int argc, char** argv)
|
|
Mark Wielaard |
bef89a |
return 0;
|
|
Mark Wielaard |
bef89a |
}
|
|
Mark Wielaard |
bef89a |
|
|
Mark Wielaard |
bef89a |
+#if defined(__GNUC__) && __GNUC__ -0 < 6
|
|
Mark Wielaard |
bef89a |
//
|
|
Mark Wielaard |
bef89a |
// From libstdc++-v3/src/c++11/thread.cc
|
|
Mark Wielaard |
bef89a |
//
|
|
Mark Wielaard |
bef89a |
@@ -65,3 +66,4 @@ namespace std
|
|
Mark Wielaard |
bef89a |
}
|
|
Mark Wielaard |
bef89a |
}
|
|
Mark Wielaard |
bef89a |
}
|
|
Mark Wielaard |
bef89a |
+#endif
|
|
Mark Wielaard |
bef89a |
diff --git a/drd/tests/std_thread2.cpp b/drd/tests/std_thread2.cpp
|
|
Mark Wielaard |
bef89a |
index 9861c61..7de4f9d 100644
|
|
Mark Wielaard |
bef89a |
--- a/drd/tests/std_thread2.cpp
|
|
Mark Wielaard |
bef89a |
+++ b/drd/tests/std_thread2.cpp
|
|
Mark Wielaard |
bef89a |
@@ -26,6 +26,7 @@ int main(int argc, char** argv)
|
|
Mark Wielaard |
bef89a |
return 0;
|
|
Mark Wielaard |
bef89a |
}
|
|
Mark Wielaard |
bef89a |
|
|
Mark Wielaard |
bef89a |
+#if defined(__GNUC__) && __GNUC__ -0 < 6
|
|
Mark Wielaard |
bef89a |
//
|
|
Mark Wielaard |
bef89a |
// From libstdc++-v3/src/c++11/thread.cc
|
|
Mark Wielaard |
bef89a |
//
|
|
Mark Wielaard |
bef89a |
@@ -70,3 +71,4 @@ namespace std
|
|
Mark Wielaard |
bef89a |
}
|
|
Mark Wielaard |
bef89a |
}
|
|
Mark Wielaard |
bef89a |
}
|
|
Mark Wielaard |
bef89a |
+#endif
|
|
Mark Wielaard |
bef89a |
--- valgrind-3.11.0.orig/configure 2016-01-25 21:16:13.019563625 +0100
|
|
Mark Wielaard |
bef89a |
+++ valgrind-3.11.0/configure 2016-01-25 21:17:31.120337140 +0100
|
|
Mark Wielaard |
bef89a |
@@ -5453,7 +5453,7 @@
|
|
Mark Wielaard |
bef89a |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (ICC version ${gcc_version})" >&5
|
|
Mark Wielaard |
bef89a |
$as_echo "ok (ICC version ${gcc_version})" >&6; }
|
|
Mark Wielaard |
bef89a |
;;
|
|
Mark Wielaard |
bef89a |
- notclang-[3-9].*|notclang-[1-9][0-9]*)
|
|
Mark Wielaard |
bef89a |
+ notclang-[3-9]|notclang-[3-9].*|notclang-[1-9][0-9]*)
|
|
Mark Wielaard |
bef89a |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
|
|
Mark Wielaard |
bef89a |
$as_echo "ok (${gcc_version})" >&6; }
|
|
Mark Wielaard |
bef89a |
;;
|