[RISC-V] rv64gc_zbb for Android
This reverts commit cc750892297fbad15411de60c1732c0f046f3ce0.
Reason for revert: Retry
Change-Id: I957ef442a4988046eeb9771b7ce1acaf4cb6ef8d
diff --git a/cc/config/riscv64_device.go b/cc/config/riscv64_device.go
index a63d5c2..d66697c 100644
--- a/cc/config/riscv64_device.go
+++ b/cc/config/riscv64_device.go
@@ -29,12 +29,14 @@
// A temporary fix for SExtWRemoval miscompilation bug.
"-mllvm",
"-riscv-disable-sextw-removal=true",
+ "-march=rv64gc_zbb",
}
riscv64ArchVariantCflags = map[string][]string{}
riscv64Ldflags = []string{
"-Wl,--hash-style=gnu",
+ "-march=rv64gc_zbb",
}
riscv64Lldflags = append(riscv64Ldflags,