diff options
-rw-r--r-- | recipes-devtools/clang/compiler-rt/0005-Pass-march-armv8.1-a-instead-of-mcrc.patch | 38 | ||||
-rw-r--r-- | recipes-devtools/clang/compiler-rt_git.bb | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/recipes-devtools/clang/compiler-rt/0005-Pass-march-armv8.1-a-instead-of-mcrc.patch b/recipes-devtools/clang/compiler-rt/0005-Pass-march-armv8.1-a-instead-of-mcrc.patch new file mode 100644 index 0000000..9f1ef38 --- /dev/null +++ b/recipes-devtools/clang/compiler-rt/0005-Pass-march-armv8.1-a-instead-of-mcrc.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From ce33b77707e708348311aea2a9b2401ed4685aa2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 20 Jul 2017 12:14:03 -0700 | ||
4 | Subject: [PATCH 5/5] Pass -march=armv8.1-a instead of -mcrc | ||
5 | |||
6 | When we pass -mcrc it does not cause driver to | ||
7 | pass right options to assembler, especially when | ||
8 | using GNU assembler, is used this causes assembler | ||
9 | failures to recognise crc instructions since the | ||
10 | default -march option passed it armv8-a | ||
11 | |||
12 | /tmp/scudo_crc32-9e9612.s:14: Error: selected processor does not support `crc32cx w0,w0,x1' | ||
13 | |||
14 | Adding -march=armv8.1-a forces the driver to pass | ||
15 | -march=armv8.1-a to assembler as well, which fixes | ||
16 | this issue | ||
17 | |||
18 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
19 | --- | ||
20 | lib/scudo/CMakeLists.txt | 2 +- | ||
21 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
22 | |||
23 | diff --git a/lib/scudo/CMakeLists.txt b/lib/scudo/CMakeLists.txt | ||
24 | index 14c199fa8..857bdccd3 100644 | ||
25 | --- a/lib/scudo/CMakeLists.txt | ||
26 | +++ b/lib/scudo/CMakeLists.txt | ||
27 | @@ -26,7 +26,7 @@ endif() | ||
28 | # Enable the AArch64 CRC32 feature for scudo_crc32.cpp, if available. | ||
29 | # Note that it is enabled by default starting with armv8.1-a. | ||
30 | if (COMPILER_RT_HAS_MCRC_FLAG) | ||
31 | - set_source_files_properties(scudo_crc32.cpp PROPERTIES COMPILE_FLAGS -mcrc) | ||
32 | + set_source_files_properties(scudo_crc32.cpp PROPERTIES COMPILE_FLAGS -march=armv8.1-a) | ||
33 | endif() | ||
34 | |||
35 | if(COMPILER_RT_HAS_SCUDO) | ||
36 | -- | ||
37 | 2.13.3 | ||
38 | |||
diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb index 7f9d5db..3be2fe8 100644 --- a/recipes-devtools/clang/compiler-rt_git.bb +++ b/recipes-devtools/clang/compiler-rt_git.bb | |||
@@ -20,6 +20,7 @@ SRC_URI = "\ | |||
20 | file://0002-Simplify-cross-compilation.-Don-t-use-native-compile.patch \ | 20 | file://0002-Simplify-cross-compilation.-Don-t-use-native-compile.patch \ |
21 | file://0003-Disable-tsan-on-OE-glibc.patch \ | 21 | file://0003-Disable-tsan-on-OE-glibc.patch \ |
22 | file://0004-cmake-mips-Do-not-specify-target-with-OE.patch \ | 22 | file://0004-cmake-mips-Do-not-specify-target-with-OE.patch \ |
23 | file://0005-Pass-march-armv8.1-a-instead-of-mcrc.patch \ | ||
23 | " | 24 | " |
24 | 25 | ||
25 | SRCREV_FORMAT = "compiler-rt" | 26 | SRCREV_FORMAT = "compiler-rt" |