diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-04-24 10:55:25 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-04-24 17:50:57 -0700 |
commit | 10461fab44ebdcee5e06c2eeb943b4d08f817965 (patch) | |
tree | 858cbf8d1c3e8a53cfb8adb424cefc9389e2fde0 /classes/clang.bbclass | |
parent | 07c1cf8e19afa529299dc3aed5c14cb42c0b8d8b (diff) | |
download | meta-clang-10461fab44ebdcee5e06c2eeb943b4d08f817965.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>
Diffstat (limited to 'classes/clang.bbclass')
-rw-r--r-- | classes/clang.bbclass | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/classes/clang.bbclass b/classes/clang.bbclass index d91a32a..f6570d6 100644 --- a/classes/clang.bbclass +++ b/classes/clang.bbclass | |||
@@ -36,10 +36,6 @@ LDFLAGS:append:toolchain-clang = " ${COMPILER_RT} ${LIBCPLUSPLUS}" | |||
36 | TUNE_CCARGS:remove:toolchain-clang = "-meb" | 36 | TUNE_CCARGS:remove:toolchain-clang = "-meb" |
37 | TUNE_CCARGS:remove:toolchain-clang = "-mel" | 37 | TUNE_CCARGS:remove:toolchain-clang = "-mel" |
38 | TUNE_CCARGS:append:toolchain-clang = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -mbig-endian", " -mlittle-endian", d)}" | 38 | TUNE_CCARGS:append:toolchain-clang = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -mbig-endian", " -mlittle-endian", d)}" |
39 | # Qemu uses 7400 but fails to emulate VSX/altivec instrs e.g. xor and fails with illegal instructions especially on musl/strspn.c | ||
40 | # Workaround the qemu limitation by disable altivec in code generation, gcc does not use altivec, so code generated with clang is | ||
41 | # superior but sadly qemu starts to puke :(, maybe it will work ok on real hardware !! | ||
42 | TUNE_CCARGS:append:toolchain-clang = "${@bb.utils.contains("TUNE_FEATURES", "ppc7400", " -mno-altivec", "", d)}" | ||
43 | 39 | ||
44 | # Clang does not yet support big.LITTLE performance tunes, so use the LITTLE for tunes | 40 | # Clang does not yet support big.LITTLE performance tunes, so use the LITTLE for tunes |
45 | TUNE_CCARGS:remove:toolchain-clang = "-mcpu=cortex-a57.cortex-a53 -mcpu=cortex-a72.cortex-a53 -mcpu=cortex-a15.cortex-a7 -mcpu=cortex-a17.cortex-a7 -mcpu=cortex-a72.cortex-a35 -mcpu=cortex-a73.cortex-a53 -mcpu=cortex-a75.cortex-a55 -mcpu=cortex-a76.cortex-a55" | 41 | TUNE_CCARGS:remove:toolchain-clang = "-mcpu=cortex-a57.cortex-a53 -mcpu=cortex-a72.cortex-a53 -mcpu=cortex-a15.cortex-a7 -mcpu=cortex-a17.cortex-a7 -mcpu=cortex-a72.cortex-a35 -mcpu=cortex-a73.cortex-a53 -mcpu=cortex-a75.cortex-a55 -mcpu=cortex-a76.cortex-a55" |