diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-04-24 10:55:25 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-09-08 09:08:54 -0700 |
commit | 41e44e880417fbca81e755d2f8230540e6b3e32b (patch) | |
tree | f4b2b917b6fb8464fb5abf96883a2d45a8d8595f /classes/clang.bbclass | |
parent | a39625546815f9aa3232ecd0036ab73e5b5de896 (diff) | |
download | meta-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.bbclass | 4 |
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}" | |||
39 | TUNE_CCARGS:remove:toolchain-clang = "-meb" | 39 | TUNE_CCARGS:remove:toolchain-clang = "-meb" |
40 | TUNE_CCARGS:remove:toolchain-clang = "-mel" | 40 | TUNE_CCARGS:remove:toolchain-clang = "-mel" |
41 | TUNE_CCARGS:append:toolchain-clang = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -mbig-endian", " -mlittle-endian", d)}" | 41 | TUNE_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 !! | ||
45 | TUNE_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 |
48 | TUNE_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" | 44 | TUNE_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" |