[PATCH] D66870: [Sanitizers] Add support for RISC-V
Luís Marques via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 30 06:23:38 PDT 2019
luismarques added inline comments.
================
Comment at: compiler-rt/cmake/config-ix.cmake:233
-set(ALL_SANITIZER_COMMON_SUPPORTED_ARCH ${X86} ${X86_64} ${PPC64}
+set(ALL_SANITIZER_COMMON_SUPPORTED_ARCH ${X86} ${X86_64} ${PPC64} ${RISCV64}
${ARM32} ${ARM64} ${MIPS32} ${MIPS64} ${S390X} ${SPARC} ${SPARCV9})
----------------
Although 32-bit support for Linux on RISC-V has lagged, you can build and boot a 32-bit kernel and it will eventually be more mainstream. Is the reason for not adding `RISCV32` here that it was only tested on the HiFive Unleashed? It's possible to get prebuilt 32-bit disk images (and patches to build them yourself) that can be tested with, for instance, QEMU. See for instance [1]. Also, I don't know how problematic it would be to add `RISCV32` to the list without testing.
[1] https://bellard.org/tinyemu/buildroot.html (Download section, etc.)
Repository:
rCRT Compiler Runtime
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66870/new/
https://reviews.llvm.org/D66870
More information about the llvm-commits
mailing list