Skip to content

Commit a33fd44

Browse files
authored
Revert "[tysan] Type Sanitizer support for SystemZ" (#169726)
Reverts #162396
1 parent d2379ef commit a33fd44

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

clang/lib/Driver/ToolChains/Linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ SanitizerMask Linux::getSupportedSanitizers() const {
922922
if (IsX86_64 || IsMIPS64 || IsAArch64 || IsPowerPC64 || IsSystemZ ||
923923
IsLoongArch64 || IsRISCV64)
924924
Res |= SanitizerKind::Thread;
925-
if (IsX86_64 || IsAArch64 || IsSystemZ)
925+
if (IsX86_64 || IsAArch64)
926926
Res |= SanitizerKind::Type;
927927
if (IsX86_64 || IsSystemZ || IsPowerPC64)
928928
Res |= SanitizerKind::KernelMemory;

compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ else()
8989
set(ALL_TSAN_SUPPORTED_ARCH ${X86_64} ${MIPS64} ${ARM64} ${PPC64} ${S390X}
9090
${LOONGARCH64} ${RISCV64})
9191
endif()
92-
set(ALL_TYSAN_SUPPORTED_ARCH ${X86_64} ${ARM64} ${S390X})
92+
set(ALL_TYSAN_SUPPORTED_ARCH ${X86_64} ${ARM64})
9393
set(ALL_UBSAN_SUPPORTED_ARCH ${X86} ${X86_64} ${ARM32} ${ARM64} ${RISCV64}
9494
${MIPS32} ${MIPS64} ${PPC64} ${S390X} ${SPARC} ${SPARCV9} ${HEXAGON}
9595
${LOONGARCH64})

compiler-rt/lib/tysan/tysan_platform.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ struct Mapping48 {
4545
static const uptr kPtrShift = 3;
4646
};
4747
#define TYSAN_RUNTIME_VMA 1
48-
#elif defined(__s390x__)
49-
struct Mapping {
50-
static const uptr kShadowAddr = 0x080000000000ULL;
51-
static const uptr kAppAddr = 0x460000000000ULL;
52-
static const uptr kAppMemMsk = ~0xC00000000000ULL;
53-
};
5448
#else
5549
#error "TySan not supported for this platform!"
5650
#endif

0 commit comments

Comments
 (0)