From da449787559399cc84e2025bf8d49f417c8a0caf Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 22 Jan 2019 19:07:29 +0100 Subject: [PATCH] remove temp patch --- debian/patches/D57018-fix-gcc-4.9.diff | 174 ------------------------- debian/patches/series | 1 - 2 files changed, 175 deletions(-) delete mode 100644 debian/patches/D57018-fix-gcc-4.9.diff diff --git a/debian/patches/D57018-fix-gcc-4.9.diff b/debian/patches/D57018-fix-gcc-4.9.diff deleted file mode 100644 index 6d3ee2cc..00000000 --- a/debian/patches/D57018-fix-gcc-4.9.diff +++ /dev/null @@ -1,174 +0,0 @@ -Index: llvm-toolchain-snapshot_9~svn351787/cmake/config-ix.cmake -=================================================================== ---- llvm-toolchain-snapshot_9~svn351787.orig/cmake/config-ix.cmake -+++ llvm-toolchain-snapshot_9~svn351787/cmake/config-ix.cmake -@@ -325,6 +325,15 @@ else() - unset(HAVE_FFI_CALL CACHE) - endif( LLVM_ENABLE_FFI ) - -+# Wether we can use std::is_triviallyc_opyable to verify llvm::is_trivially_copyable -+CHECK_CXX_SOURCE_COMPILES(" -+#include -+struct T { int val; }; -+static_assert(std::is_trivially_copyable::value, \"ok\"); -+int main() { return 0;} -+" HAVE_STD_IS_TRIVIALLY_COPYABLE) -+ -+ - # Define LLVM_HAS_ATOMICS if gcc or MSVC atomic builtins are supported. - include(CheckAtomic) - -Index: llvm-toolchain-snapshot_9~svn351787/include/llvm/ADT/PointerIntPair.h -=================================================================== ---- llvm-toolchain-snapshot_9~svn351787.orig/include/llvm/ADT/PointerIntPair.h -+++ llvm-toolchain-snapshot_9~svn351787/include/llvm/ADT/PointerIntPair.h -@@ -14,6 +14,7 @@ - #define LLVM_ADT_POINTERINTPAIR_H - - #include "llvm/Support/PointerLikeTypeTraits.h" -+#include "llvm/Support/type_traits.h" - #include - #include - #include -@@ -125,6 +126,17 @@ public: - } - }; - -+template -+struct is_trivially_copyable> : std::true_type { -+#ifdef HAVE_STD_IS_TRIVIALLY_COPYABLE -+ static_assert(std::is_trivially_copyable>::value, -+ "inconsistent behavior between llvm:: and std:: implementation of is_trivially_copyable"); -+#endif -+}; -+ -+ - template - struct PointerIntPairInfo { - static_assert(PtrTraits::NumLowBitsAvailable < -Index: llvm-toolchain-snapshot_9~svn351787/include/llvm/Config/config.h.cmake -=================================================================== ---- llvm-toolchain-snapshot_9~svn351787.orig/include/llvm/Config/config.h.cmake -+++ llvm-toolchain-snapshot_9~svn351787/include/llvm/Config/config.h.cmake -@@ -338,6 +338,9 @@ - /* Define as the return type of signal handlers (`int' or `void'). */ - #cmakedefine RETSIGTYPE ${RETSIGTYPE} - -+/* Define if std::is_trivially_copyable is supported */ -+#cmakedefine HAVE_STD_IS_TRIVIALLY_COPYABLE ${HAVE_STD_IS_TRIVIALLY_COPYABLE} -+ - /* Define to a function implementing stricmp */ - #cmakedefine stricmp ${stricmp} - -Index: llvm-toolchain-snapshot_9~svn351787/include/llvm/Support/type_traits.h -=================================================================== ---- llvm-toolchain-snapshot_9~svn351787.orig/include/llvm/Support/type_traits.h -+++ llvm-toolchain-snapshot_9~svn351787/include/llvm/Support/type_traits.h -@@ -95,6 +95,31 @@ template - union trivial_helper { - T t; - }; -+ -+ -+template struct VoidTImpl { using type = void; }; -+ -+template class Op, class... Args> -+struct IsDetectedImpl { -+ using type = std::false_type; -+}; -+ -+template