1 From 034a3552e9700c6d424bd706db106f5bce1f5a5e Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Fri, 11 Nov 2016 21:49:39 +0100
4 Subject: [PATCH] arm: fix build on Thumb-only architectures
6 Building tinymembench for ARM Cortex-M currently fails, because the
7 arm-neon.S file contains ARM code that doesn't build on Thumb-only
8 architectures. To account for this and fix the build for Cortex-M,
9 this patch adjusts the compile time condition to also verify that the
10 architecture supports the ARM instruction set, by testing the
11 __ARM_ARCH_ISA_ARM compiler define.
13 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
17 2 files changed, 2 insertions(+), 2 deletions(-)
19 diff --git a/arm-neon.S b/arm-neon.S
20 index 4db78ce..19c30ad 100644
24 * DEALINGS IN THE SOFTWARE.
28 +#if defined(__arm__) && defined(__ARM_ARCH_ISA_ARM)
32 diff --git a/asm-opt.c b/asm-opt.c
33 index 9da4596..eba1183 100644
36 @@ -202,7 +202,7 @@ bench_info *get_asm_framebuffer_benchmarks(void)
40 -#elif defined(__arm__)
41 +#elif defined(__arm__) && defined(__ARM_ARCH_ISA_ARM)