diff options
| author | 2023-03-31 05:46:04 +0000 | |
|---|---|---|
| committer | 2023-03-31 05:46:04 +0000 | |
| commit | 3b7cb59e4e75a40388b54cf3228ea637b1840e17 (patch) | |
| tree | cbbb6b5b26c327571ad4a8b52c6f88cce3898c5d | |
| parent | e28bde81fd665ee0aca6b32db6521d745d0be8c5 (diff) | |
| parent | bce5507c024085ab261b5fa4a803cb9c38ea8559 (diff) | |
Merge "Enable sext.w removal for riscv targets"
| -rw-r--r-- | cc/config/riscv64_device.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/config/riscv64_device.go b/cc/config/riscv64_device.go index 35c57f90f..76c8e5dca 100644 --- a/cc/config/riscv64_device.go +++ b/cc/config/riscv64_device.go @@ -28,6 +28,9 @@ var ( "-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{} |