summaryrefslogtreecommitdiffstats
path: root/classes/clang.bbclass
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-04-24 10:55:25 -0700
committerKhem Raj <raj.khem@gmail.com>2023-09-08 09:08:54 -0700
commit41e44e880417fbca81e755d2f8230540e6b3e32b (patch)
treef4b2b917b6fb8464fb5abf96883a2d45a8d8595f /classes/clang.bbclass
parenta39625546815f9aa3232ecd0036ab73e5b5de896 (diff)
downloadmeta-clang-41e44e880417fbca81e755d2f8230540e6b3e32b.tar.gz
clang: Enable altivec again for ppc32
This was disabled for musl issue which is not related to altivec Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 10461fab44ebdcee5e06c2eeb943b4d08f817965)
Diffstat (limited to 'classes/clang.bbclass')
-rw-r--r--classes/clang.bbclass4
1 files changed, 0 insertions, 4 deletions
diff --git a/classes/clang.bbclass b/classes/clang.bbclass
index a8f5dbe..6281556 100644
--- a/classes/clang.bbclass
+++ b/classes/clang.bbclass
@@ -39,10 +39,6 @@ LDFLAGS:append:toolchain-clang = " ${COMPILER_RT} ${LIBCPLUSPLUS}"
39TUNE_CCARGS:remove:toolchain-clang = "-meb" 39TUNE_CCARGS:remove:toolchain-clang = "-meb"
40TUNE_CCARGS:remove:toolchain-clang = "-mel" 40TUNE_CCARGS:remove:toolchain-clang = "-mel"
41TUNE_CCARGS:append:toolchain-clang = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -mbig-endian", " -mlittle-endian", d)}" 41TUNE_CCARGS:append:toolchain-clang = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -mbig-endian", " -mlittle-endian", d)}"
42# Qemu uses 7400 but fails to emulate VSX/altivec instrs e.g. xor and fails with illegal instructions especially on musl/strspn.c
43# Workaround the qemu limitation by disable altivec in code generation, gcc does not use altivec, so code generated with clang is
44# superior but sadly qemu starts to puke :(, maybe it will work ok on real hardware !!
45TUNE_CCARGS:append:toolchain-clang = "${@bb.utils.contains("TUNE_FEATURES", "ppc7400", " -mno-altivec", "", d)}"
46 42
47# Clang does not yet support big.LITTLE performance tunes, so use the LITTLE for tunes 43# Clang does not yet support big.LITTLE performance tunes, so use the LITTLE for tunes
48TUNE_CCARGS:remove:toolchain-clang = "-mtune=cortex-a57.cortex-a53 -mtune=cortex-a72.cortex-a53 -mtune=cortex-a15.cortex-a7 -mtune=cortex-a17.cortex-a7 -mtune=cortex-a72.cortex-a35 -mtune=cortex-a73.cortex-a53 -mtune=cortex-a75.cortex-a55 -mtune=cortex-a76.cortex-a55" 44TUNE_CCARGS:remove:toolchain-clang = "-mtune=cortex-a57.cortex-a53 -mtune=cortex-a72.cortex-a53 -mtune=cortex-a15.cortex-a7 -mtune=cortex-a17.cortex-a7 -mtune=cortex-a72.cortex-a35 -mtune=cortex-a73.cortex-a53 -mtune=cortex-a75.cortex-a55 -mtune=cortex-a76.cortex-a55"