From cfe8c1a4a49949d2652ae8deb966d18af1514ab2 Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Fri, 4 Nov 2016 11:28:45 +0000 Subject: [PATCH] Add patch to fix NEON issue --- debian/changelog | 7 +++++++ debian/patches/no-neon-on-armhf.patch | 15 +++++++++++++++ debian/patches/series | 1 + 3 files changed, 23 insertions(+) create mode 100644 debian/patches/no-neon-on-armhf.patch diff --git a/debian/changelog b/debian/changelog index 0c57bdbe..d5dd9992 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +llvm-toolchain-3.8 (1:3.8.1-14) UNRELEASED; urgency=medium + + * d/p/no-neon-on-armhf.patch: avoid defaulting to NEON instructions + for armhf (Closes: #842142). + + -- Gianfranco Costamagna Fri, 04 Nov 2016 12:16:22 +0100 + llvm-toolchain-3.8 (1:3.8.1-13) unstable; urgency=medium * Fix a version issue with run-clang-tidy-3.8.py diff --git a/debian/patches/no-neon-on-armhf.patch b/debian/patches/no-neon-on-armhf.patch new file mode 100644 index 00000000..af25e89e --- /dev/null +++ b/debian/patches/no-neon-on-armhf.patch @@ -0,0 +1,15 @@ +Description: Patch suggested from upstream, to build without a default NEON for arm* + +Bug-Debian: https://bugs.debian.org/842142 + +--- llvm-toolchain-3.8-3.8.1.orig/clang/lib/Driver/Tools.cpp ++++ llvm-toolchain-3.8-3.8.1/clang/lib/Driver/Tools.cpp +@@ -8437,7 +8437,7 @@ void gnutools::Assembler::ConstructJob(C + const llvm::Triple &Triple2 = getToolChain().getTriple(); + switch (Triple2.getSubArch()) { + case llvm::Triple::ARMSubArch_v7: +- CmdArgs.push_back("-mfpu=neon"); ++ CmdArgs.push_back("-mfpu=vfp"); + break; + case llvm::Triple::ARMSubArch_v8: + CmdArgs.push_back("-mfpu=crypto-neon-fp-armv8"); diff --git a/debian/patches/series b/debian/patches/series index b2ecdd27..bc6e44de 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -51,3 +51,4 @@ lldb-arm64.diff clang-tidy-run-bin.diff silent-llvm-symbolizer.diff +no-neon-on-armhf.patch