summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
diff options
context:
space:
mode:
authorSam Elliott <selliott@lowrisc.org>2019-10-17 17:24:28 +0000
committerSam Elliott <selliott@lowrisc.org>2019-10-17 17:24:28 +0000
commitd4b7a60b92cb90686ef41f2a3f6ac8a16d7e7ecc (patch)
treeda9e1da80b40979d9ec914b1a219aca86121bb2d /compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
parent08de59bed5be32d81d920d0616d0b552fd85f4ba (diff)
downloadbcm5719-llvm-d4b7a60b92cb90686ef41f2a3f6ac8a16d7e7ecc.tar.gz
bcm5719-llvm-d4b7a60b92cb90686ef41f2a3f6ac8a16d7e7ecc.zip
Revert [Sanitizers] Add support for RISC-V 64-bit
This reverts r375132 (git commit 00bbe990c5d4472d5413479a539b3d6edbb3ca7a) llvm-svn: 375136
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
index 3807a79b1cd..0b53da6c349 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
@@ -407,10 +407,7 @@ uptr internal_unlink(const char *path) {
}
uptr internal_rename(const char *oldpath, const char *newpath) {
-#if defined(__riscv)
- return internal_syscall(SYSCALL(renameat2), AT_FDCWD, (uptr)oldpath, AT_FDCWD,
- (uptr)newpath, 0);
-#elif SANITIZER_USES_CANONICAL_LINUX_SYSCALLS || SANITIZER_OPENBSD
+#if SANITIZER_USES_CANONICAL_LINUX_SYSCALLS || SANITIZER_OPENBSD
return internal_syscall(SYSCALL(renameat), AT_FDCWD, (uptr)oldpath, AT_FDCWD,
(uptr)newpath);
#else
@@ -1975,11 +1972,6 @@ static void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp) {
# endif
*bp = ucontext->uc_mcontext.gregs[11];
*sp = ucontext->uc_mcontext.gregs[15];
-#elif defined(__riscv)
- ucontext_t *ucontext = (ucontext_t*)context;
- *pc = ucontext->uc_mcontext.__gregs[REG_PC];
- *bp = ucontext->uc_mcontext.__gregs[REG_S0];
- *sp = ucontext->uc_mcontext.__gregs[REG_SP];
#else
# error "Unsupported arch"
#endif
OpenPOWER on IntegriCloud