commit | 3b7cb59e4e75a40388b54cf3228ea637b1840e17 | [log] [tgz] |
---|---|---|
author | Prashanth Swaminathan <prashanthsw@google.com> | Fri Mar 31 05:46:04 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Mar 31 05:46:04 2023 +0000 |
tree | cbbb6b5b26c327571ad4a8b52c6f88cce3898c5d | |
parent | e28bde81fd665ee0aca6b32db6521d745d0be8c5 [diff] | |
parent | bce5507c024085ab261b5fa4a803cb9c38ea8559 [diff] |
Merge "Enable sext.w removal for riscv targets"
diff --git a/cc/config/riscv64_device.go b/cc/config/riscv64_device.go index 35c57f9..76c8e5d 100644 --- a/cc/config/riscv64_device.go +++ b/cc/config/riscv64_device.go
@@ -28,6 +28,9 @@ "-fno-emulated-tls", // For -fsanitize=shadow-call-stack. "-ffixed-x18", + // A temporary fix for SExtWRemoval miscompilation bug. + "-mllvm", + "-riscv-disable-sextw-removal=true", } riscv64ArchVariantCflags = map[string][]string{}