[all-commits] [llvm/llvm-project] cec147: [ASan][test] Enable ASan tests on SPARC (#107405)
Rainer Orth via All-commits
all-commits at lists.llvm.org
Mon Nov 4 00:34:17 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cec147ae5cb9debd74cc3dc2bca12e8cd8a30831
https://github.com/llvm/llvm-project/commit/cec147ae5cb9debd74cc3dc2bca12e8cd8a30831
Author: Rainer Orth <ro at gcc.gnu.org>
Date: 2024-11-04 (Mon, 04 Nov 2024)
Changed paths:
M compiler-rt/lib/asan/tests/CMakeLists.txt
M compiler-rt/lib/asan/tests/asan_oob_test.cpp
M compiler-rt/lib/asan/tests/asan_test.cpp
M compiler-rt/test/asan/CMakeLists.txt
M compiler-rt/test/asan/TestCases/zero_page_pc.cpp
M compiler-rt/test/sanitizer_common/CMakeLists.txt
M compiler-rt/test/ubsan/CMakeLists.txt
Log Message:
-----------
[ASan][test] Enable ASan tests on SPARC (#107405)
With PR #107223 and PR #107403, ASan testing can be enabled on SPARC.
This patch does so, 32-bit only on both Solaris and Linux. There is no
64-bit support even in GCC.
Apart from the obvious CMake changes, this patch includes a couple of
testcase adjustments necessary for SPARC:
- In `asan_oob_test.cpp`, the `OOB_int` subtest needs to be disabled: it
performs unaligned accesses that cannot work on a strict-alignment
target like SPARC.
- `asan_test.cpp` needs to disable subtests that depend on support for
`__builtin_setjmp` and `__builtin_longjmp`.
- `zero_page_pc.cpp` reports `0x5` as the faulting address on access to
`0x4`. I don't really know why, but it's consistent between Solaris and
Linux.
Tested on `sparcv9-sun-solaris2.11` and `sparc64-unknown-linux-gnu`.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list